From bbb034b7e0ab111ce200d81ab5a9b56ad9ad880c Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Mon, 19 Aug 2019 14:41:33 +0200 Subject: [PATCH] Removed sparse parameter in write_customer() --- sales/includes/sales_db.inc | 2 +- sales/manage/customers.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sales/includes/sales_db.inc b/sales/includes/sales_db.inc index 348d69fd..2fd0bb9f 100644 --- a/sales/includes/sales_db.inc +++ b/sales/includes/sales_db.inc @@ -471,7 +471,7 @@ function write_recurrent_invoice($invoice_id, $description, $order_no, $debtor_n function write_customer($customer_id, $name, $ref, $address, $tax_id, $curr_code, $dim1, $dim2, $credit_status, $payment_terms, $discount, $credit_limit, $sales_type, $notes, $inactive, $salesman, $area, - $tax_group, $location, $address, $ship_via, $notes, $bank_account, $address, $phone, $phone2, $fax, $email) + $tax_group, $location, $address, $ship_via, $notes, $bank_account, $phone, $phone2, $fax, $email) { global $SysPrefs; diff --git a/sales/manage/customers.php b/sales/manage/customers.php index 4ac790c6..8f732173 100644 --- a/sales/manage/customers.php +++ b/sales/manage/customers.php @@ -79,11 +79,11 @@ function handle_submit(&$selected_id) $_POST['customer_id'] = write_customer($_POST['customer_id'], $_POST['CustName'], $_POST['cust_ref'], $_POST['address'], - $_POST['tax_id'], $_POST['curr_code'], $_POST['dimension_id'], $_POST['dimension2_id'], - $_POST['credit_status'], $_POST['payment_terms'], input_num('discount'), - input_num('credit_limit'), $_POST['sales_type'], $_POST['notes'], @$_POST['inactive'], get_post('salesman'), - get_post('area'), get_post('tax_group_id'), get_post('location'), get_post('address'), get_post('ship_via'), - get_post('notes'), get_post('bank_account'), get_post('address'), get_post('phone'), get_post('phone2'), get_post('fax'), get_post('email')); + $_POST['tax_id'], $_POST['curr_code'], $_POST['dimension_id'], $_POST['dimension2_id'], + $_POST['credit_status'], $_POST['payment_terms'], input_num('discount'), + input_num('credit_limit'), $_POST['sales_type'], $_POST['notes'], @$_POST['inactive'], get_post('salesman'), + get_post('area'), get_post('tax_group_id'), get_post('location'), get_post('address'), get_post('ship_via'), + get_post('notes'), get_post('bank_account'), get_post('phone'), get_post('phone2'), get_post('fax'), get_post('email')); if ($selected_id) { -- 2.30.2