From: Janusz Dobrowolski Date: Mon, 14 Nov 2016 11:15:42 +0000 (+0100) Subject: Cleanup in sales_invoice_db.inc (obsolete parameteres in update_debtor_trans_allocati... X-Git-Tag: 2.3-final~17 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=eb165f28009ba988edb4384d81843405d4938d46 Cleanup in sales_invoice_db.inc (obsolete parameteres in update_debtor_trans_allocation calls) --- diff --git a/sales/includes/db/sales_invoice_db.inc b/sales/includes/db/sales_invoice_db.inc index cd80b2cf..0e4bbae1 100644 --- a/sales/includes/db/sales_invoice_db.inc +++ b/sales/includes/db/sales_invoice_db.inc @@ -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);