Merged changes form stabel branch up to the current state (2.3.22+).
[fa-stable.git] / sales / manage / customers.php
index 65c36c934e795f3ff3a04a5016b69e3b6d0b10ca..6515b8af9624371435d1cc13b82ed522ac4d4ad8 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();