Cleanup in sales_invoice_db.inc (obsolete parameteres in update_debtor_trans_allocati...
[fa-stable.git] / sales / includes / db / sales_invoice_db.inc
index cd80b2cf939830a4d441f1cbb3711ddabf89d62d..0e4bbae10c8fe2fc16dc03a14e70417ca0d371cc 100644 (file)
@@ -176,8 +176,8 @@ function write_sales_invoice(&$invoice)
                                _('Cash invoice').' '.$invoice_no);
                        add_cust_allocation($amount, ST_CUSTPAYMENT, $pmtno, ST_SALESINVOICE, $invoice_no);
 
-                       update_debtor_trans_allocation(ST_SALESINVOICE, $invoice_no, $amount);
-                       update_debtor_trans_allocation(ST_CUSTPAYMENT, $pmtno, $amount);
+                       update_debtor_trans_allocation(ST_SALESINVOICE, $invoice_no);
+                       update_debtor_trans_allocation(ST_CUSTPAYMENT, $pmtno);
                }
        }
        hook_db_postwrite($invoice, ST_SALESINVOICE);