Ehen automatic creating a branch the contact is also created on the customer.
authorJoe <unknown>
Sun, 13 Oct 2013 22:00:04 +0000 (00:00 +0200)
committerJoe <unknown>
Sun, 13 Oct 2013 22:00:04 +0000 (00:00 +0200)
sales/manage/customers.php

index d7422f22034f8cd4f3dd992a805352f191a4246c..c66649676dd75e9db09961be893e6857ec5c7989 100644 (file)
@@ -121,6 +121,8 @@ function handle_submit(&$selected_id)
                                $_POST['phone'], $_POST['phone2'], $_POST['fax'], $_POST['email'], '', '');
 
                        add_crm_contact('cust_branch', 'general', $selected_branch, db_insert_id());
+
+                       add_crm_contact('customer', 'general', $selected_id, db_insert_id());
                }
                commit_transaction();