Fixed contact record creation when new customer is added (reference/name were superse...
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 8 Oct 2014 18:50:59 +0000 (20:50 +0200)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 8 Oct 2014 18:50:59 +0000 (20:50 +0200)
sales/manage/customers.php

index f76e1cd9ccecc8e24a7056d5b6a6f9aa310c4151..511e8feab60b595e64a7034717f28876620b0cd3 100644 (file)
@@ -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();