X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fmanage%2Fcustomers.php;h=93768344ec214fa20eec1d5bf4d0c56c3fe3478c;hb=0354fb9befaf2f59c679d13779d75b109784bf46;hp=d7422f22034f8cd4f3dd992a805352f191a4246c;hpb=cbcc66d2cc2b92e447cb38cfe5579b8e739933cd;p=fa-stable.git diff --git a/sales/manage/customers.php b/sales/manage/customers.php index d7422f22..93768344 100644 --- a/sales/manage/customers.php +++ b/sales/manage/customers.php @@ -120,7 +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, $pers_id); } commit_transaction();