From: Janusz Dobrowolski Date: Wed, 8 Oct 2014 18:50:59 +0000 (+0200) Subject: Fixed contact record creation when new customer is added (reference/name were superse... X-Git-Tag: 2.3-final~95 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=87ac1ff401682a1ccbbbf01ece7afe8ff518d3fe Fixed contact record creation when new customer is added (reference/name were superseded). --- diff --git a/sales/manage/customers.php b/sales/manage/customers.php index f76e1cd9..511e8fea 100644 --- a/sales/manage/customers.php +++ b/sales/manage/customers.php @@ -117,7 +117,7 @@ function handle_submit(&$selected_id) $selected_branch = db_insert_id(); - add_crm_person($_POST['CustName'], $_POST['cust_ref'], '', $_POST['address'], + add_crm_person($_POST['cust_ref'], $_POST['CustName'], '', $_POST['address'], $_POST['phone'], $_POST['phone2'], $_POST['fax'], $_POST['email'], '', ''); $pers_id = db_insert_id();