X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fsales_db.inc;h=6cad00f183dfdf7fcb5d1e87d44b90a042674f6c;hb=128be63f9ae68744f37eae8072f95d0f524f86b4;hp=e870b83356c20110d4f03d10a6d9ed4bf5604cfb;hpb=0e9e4cf4f01431531dfed299bb501955bb0818ed;p=fa-stable.git diff --git a/sales/includes/sales_db.inc b/sales/includes/sales_db.inc index e870b833..6cad00f1 100644 --- a/sales/includes/sales_db.inc +++ b/sales/includes/sales_db.inc @@ -465,7 +465,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, $pymt_discount, $credit_limit, $sales_type, $notes, $inactive, $salesman, $area, + $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) { global $SysPrefs; @@ -474,13 +474,13 @@ function write_customer($customer_id, $name, $ref, $address, $tax_id, $curr_code if ($customer_id) { update_customer($customer_id, $name, $ref, $address, $tax_id, $curr_code, $dim1, $dim2, $credit_status, - $payment_terms, $discount/100, $pymt_discount/100, $credit_limit, $sales_type, $notes, $inactive); + $payment_terms, $discount/100, $credit_limit, $sales_type, $notes, $inactive); update_record_status($customer_id, $inactive, 'debtors_master', 'debtor_no'); } else { add_customer($name, $ref, $address, $tax_id, $curr_code, $dim1, $dim2, $credit_status, $payment_terms, - $discount / 100, $pymt_discount / 100, $credit_limit, $sales_type, $notes); + $discount / 100, $credit_limit, $sales_type, $notes); $customer_id = db_insert_id();