X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fmanage%2Fcustomers.php;h=93768344ec214fa20eec1d5bf4d0c56c3fe3478c;hb=0354fb9befaf2f59c679d13779d75b109784bf46;hp=c66649676dd75e9db09961be893e6857ec5c7989;hpb=f2e8e8b8c9baff6e469f35ae87b2efcefd259597;p=fa-stable.git diff --git a/sales/manage/customers.php b/sales/manage/customers.php index c6664967..93768344 100644 --- a/sales/manage/customers.php +++ b/sales/manage/customers.php @@ -120,9 +120,10 @@ function handle_submit(&$selected_id) add_crm_person($_POST['CustName'], $_POST['cust_ref'], '', $_POST['address'], $_POST['phone'], $_POST['phone2'], $_POST['fax'], $_POST['email'], '', ''); - add_crm_contact('cust_branch', 'general', $selected_branch, db_insert_id()); + $pers_id = db_insert_id(); + add_crm_contact('cust_branch', 'general', $selected_branch, $pers_id); - add_crm_contact('customer', 'general', $selected_id, db_insert_id()); + add_crm_contact('customer', 'general', $selected_id, $pers_id); } commit_transaction();