Make value actually nnot be stupid

This commit is contained in:
Tom Bloor 2019-07-15 04:28:44 +01:00
parent b02f8b7c5f
commit 9357405445
No known key found for this signature in database
GPG key ID: 4657C7EBE42CC5CC

View file

@ -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,