Customer Payment, Supplier Payment: early discount support.
[fa-stable.git] / reporting / rep112.php
index aaaf783cea0ff576ed75f33dbb021b8cf4c805c6..6f0cf987b21a77c305e05d49e7f036e2ed0989fe 100644 (file)
@@ -120,7 +120,7 @@ function print_receipts()
                        $rep->SetCommonData($myrow, null, $myrow, $baccount, ST_CUSTPAYMENT, $contacts);
                        $rep->SetHeaderType('Header2');
                        $rep->NewPage();
-                       $result = get_allocatable_to_cust_transactions($myrow['debtor_no'], $myrow['trans_no'], $myrow['type']);
+                       $result = get_allocatable_to_cust_transactions(0, $myrow['trans_no'], $myrow['type']);
 
                        $doctype = ST_CUSTPAYMENT;