From 935740544568d9e481e5b40e5e83ce945dc20f98 Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Mon, 15 Jul 2019 04:28:44 +0100 Subject: [PATCH] Make value actually nnot be stupid --- lib/Pear/LocalLoop/Controller/Api/External.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Pear/LocalLoop/Controller/Api/External.pm b/lib/Pear/LocalLoop/Controller/Api/External.pm index 977d99c..ccbbed3 100644 --- a/lib/Pear/LocalLoop/Controller/Api/External.pm +++ b/lib/Pear/LocalLoop/Controller/Api/External.pm @@ -159,7 +159,7 @@ sub post_year_spend { my @graph_data = ( map { { count => $_->get_column('count'), - value => $_->get_column('total_spend'), + value => ($_->get_column('total_spend') / 100000) // 0, date => $_->get_column('quantised'), } } $spend_rs->all, ); @@ -227,7 +227,7 @@ sub post_supplier_count { my @graph_data = ( map { { count => $_->get_column('count'), - value => $_->get_column('total_spend'), + value => ($_->get_column('total_spend') / 100000) // 0, date => $_->get_column('quantised'), seller => $name_map{ $_->get_column('seller_id') }, } } $spend_rs->all,