Skip to content

Commit

Permalink
PaulB: consider discount with SalesGraph
Browse files Browse the repository at this point in the history
Add discount subtraction as part of SalesGraph when the GraphValue is 'Net' or 'GP'
  • Loading branch information
TurboPT committed Mar 16, 2018
1 parent 4432a96 commit acfacde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SalesGraph.php
Expand Up @@ -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';
Expand Down

0 comments on commit acfacde

Please sign in to comment.