Make value actually nnot be stupid
This commit is contained in:
parent
b02f8b7c5f
commit
9357405445
1 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ sub post_year_spend {
|
||||||
my @graph_data = (
|
my @graph_data = (
|
||||||
map { {
|
map { {
|
||||||
count => $_->get_column('count'),
|
count => $_->get_column('count'),
|
||||||
value => $_->get_column('total_spend'),
|
value => ($_->get_column('total_spend') / 100000) // 0,
|
||||||
date => $_->get_column('quantised'),
|
date => $_->get_column('quantised'),
|
||||||
} } $spend_rs->all,
|
} } $spend_rs->all,
|
||||||
);
|
);
|
||||||
|
@ -227,7 +227,7 @@ sub post_supplier_count {
|
||||||
my @graph_data = (
|
my @graph_data = (
|
||||||
map { {
|
map { {
|
||||||
count => $_->get_column('count'),
|
count => $_->get_column('count'),
|
||||||
value => $_->get_column('total_spend'),
|
value => ($_->get_column('total_spend') / 100000) // 0,
|
||||||
date => $_->get_column('quantised'),
|
date => $_->get_column('quantised'),
|
||||||
seller => $name_map{ $_->get_column('seller_id') },
|
seller => $name_map{ $_->get_column('seller_id') },
|
||||||
} } $spend_rs->all,
|
} } $spend_rs->all,
|
||||||
|
|
Reference in a new issue