From eb165f28009ba988edb4384d81843405d4938d46 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Mon, 14 Nov 2016 12:15:42 +0100 Subject: [PATCH] Cleanup in sales_invoice_db.inc (obsolete parameteres in update_debtor_trans_allocation calls) --- sales/includes/db/sales_invoice_db.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2