Skip to content

Commit

Permalink
Fix calculation discrepancy
Browse files Browse the repository at this point in the history
Paul Becker calcuation discrepancy fix.
http://www.weberp.org/forum/showthread.php?tid=8188
  • Loading branch information
TurboPT committed Sep 3, 2018
1 parent 30d782e commit bc14d0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Z_CheckDebtorsControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<td>' . $CurPeriod . '</td>
<td class="number">' . locale_number_format($dtRow['bfwd'],2) . '</td>';

$SQL = "SELECT SUM((ovamount+ovgst)/rate) AS totinvnetcrds
$SQL = "SELECT SUM((ovamount+ovgst+ovfreight+ovdiscount)/rate) AS totinvnetcrds
FROM debtortrans
WHERE prd = '" . $CurPeriod . "'
AND (type=10 OR type=11)";
Expand All @@ -108,7 +108,7 @@

echo '<td class="number">' . locale_number_format($invRow['totinvnetcrds'],2) . '</td>';

$SQL = "SELECT SUM((ovamount+ovgst)/rate) AS totreceipts
$SQL = "SELECT SUM((ovamount+ovgst+ovfreight+ovdiscount)/rate) AS totreceipts
FROM debtortrans
WHERE prd = '" . $CurPeriod . "'
AND type=12";
Expand Down

0 comments on commit bc14d0d

Please sign in to comment.