Bank Payment on customer statements shows in credit column, should be debit. Balance ok.
[fa-stable.git] / reporting / rep108.php
index 5becd70482eea435882aea990d4cd04ca730d967..0247f7cc3539ef3ec2e95ff9c0900d7080e138ba 100644 (file)
@@ -139,7 +139,7 @@ function print_statements()
                        $rep->TextCol(2, 3,     sql2date($myrow2['tran_date']), -2);
                        if ($myrow2['type'] == ST_SALESINVOICE)
                                $rep->TextCol(3, 4,     sql2date($myrow2['due_date']), -2);
-                       if ($myrow2['type'] == ST_SALESINVOICE)
+                       if ($myrow2['type'] == ST_SALESINVOICE || $myrow2['type'] == ST_BANKPAYMENT)
                                $rep->TextCol(4, 5,     $DisplayTotal, -2);
                        else
                                $rep->TextCol(5, 6,     $DisplayTotal, -2);