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';