added ability to edit icons and gt them in stats
This commit is contained in:
parent
4323e49cfc
commit
2b0abd2606
4 changed files with 26 additions and 3 deletions
|
@ -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({
|
||||
|
|
Reference in a new issue