Skip to content

Commit

Permalink
02/12/16 Exson: Fixed the wrong balance in Customer Allocations when …
Browse files Browse the repository at this point in the history
…customer receipt is positive in CustomerAllocations.php.

git-svn-id: http://svn.code.sf.net/p/web-erp/code/trunk@7693 09516a42-71f9-43be-811f-9b821cf0d246
  • Loading branch information
exsonqu committed Dec 2, 2016
1 parent 3f82e0d commit dc4e16c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CustomerAllocations.php
Expand Up @@ -577,7 +577,8 @@
$BalSQL= "SELECT SUM(ovamount+ovgst+ovfreight+ovdiscount-alloc) as total
FROM debtortrans
WHERE (type=12 OR type=11)
AND debtorno='" . $myrow['debtorno'] . "'";
AND debtorno='" . $myrow['debtorno'] . "'
AND ovamount<0";
$BalResult = DB_query($BalSQL);
$BalRow = DB_fetch_array($BalResult);
$Balance = $BalRow['total'];
Expand Down

0 comments on commit dc4e16c

Please sign in to comment.