added ability to edit icons and gt them in stats

This commit is contained in:
Finn 2018-06-14 16:40:50 +01:00
parent 4323e49cfc
commit 2b0abd2606
4 changed files with 26 additions and 3 deletions

View file

@ -132,7 +132,9 @@ sub post_customer {
$cat_total_list{$category_list->{$category}} += $value;
}
my @cat_lists = map { { category => $_, value => $cat_total_list{$_} } } sort keys %cat_total_list;
my @cat_lists = map { { category => $_, value => $cat_total_list{$_},
icon => $c->schema->resultset('Category')->as_hash_name_icon->{$_} } } sort keys %cat_total_list;
Dwarn @cat_lists;
$data->{cat_list} = [ sort { $b->{value} <=> $a->{value} } @cat_lists ];
my $purchase_no_essential_rs = $purchase_rs->search({