From acfacde4bc02ecab1cb5c34cd9916768fc9570d6 Mon Sep 17 00:00:00 2001 From: PaulT Date: Fri, 16 Mar 2018 01:53:33 -0400 Subject: [PATCH] PaulB: consider discount with SalesGraph Add discount subtraction as part of SalesGraph when the GraphValue is 'Net' or 'GP' --- SalesGraph.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SalesGraph.php b/SalesGraph.php index 5b7e0f2e6..ecafa1bc8 100644 --- a/SalesGraph.php +++ b/SalesGraph.php @@ -208,10 +208,10 @@ $GraphTitle =''; if ($_POST['GraphValue']=='Net') { $GraphTitle = _('Sales Value'); - $SelectClause = 'amt'; + $SelectClause = 'amt - disc'; } elseif ($_POST['GraphValue']=='GP'){ $GraphTitle = _('Gross Profit'); - $SelectClause = '(amt - cost)'; + $SelectClause = '(amt - disc - cost)'; } else { $GraphTitle = _('Unit Sales'); $SelectClause = 'qty';