X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fmanage%2Fcustomers.php;h=6515b8af9624371435d1cc13b82ed522ac4d4ad8;hb=fbf51ab0febfd0885620abcab8738339d156ff45;hp=f76e1cd9ccecc8e24a7056d5b6a6f9aa310c4151;hpb=29a830f28694733a997b3095aecc8b192f7b7187;p=fa-stable.git diff --git a/sales/manage/customers.php b/sales/manage/customers.php index f76e1cd9..6515b8af 100644 --- a/sales/manage/customers.php +++ b/sales/manage/customers.php @@ -12,7 +12,7 @@ $page_security = 'SA_CUSTOMER'; $path_to_root = "../.."; -include($path_to_root . "/includes/db_pager.inc"); +include_once($path_to_root . "/includes/db_pager.inc"); include_once($path_to_root . "/includes/session.inc"); $js = ""; if ($use_popup_windows) @@ -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(); @@ -362,12 +362,10 @@ tabbed_content_start('tabs', array( break; case 'transactions': $_GET['customer_id'] = $selected_id; - $_GET['popup'] = 1; include_once($path_to_root."/sales/inquiry/customer_inquiry.php"); break; case 'orders': $_GET['customer_id'] = $selected_id; - $_GET['popup'] = 1; include_once($path_to_root."/sales/inquiry/sales_orders_view.php"); break; };