X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fmanage%2Fcustomers.php;h=a14bd2058bb09bbed4295be9a04a2210985408e8;hb=5dc5289c7042dfcf44dfdcdc9321eac86ffd32c6;hp=f76e1cd9ccecc8e24a7056d5b6a6f9aa310c4151;hpb=29a830f28694733a997b3095aecc8b192f7b7187;p=fa-stable.git diff --git a/sales/manage/customers.php b/sales/manage/customers.php index f76e1cd9..a14bd205 100644 --- a/sales/manage/customers.php +++ b/sales/manage/customers.php @@ -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(); @@ -347,8 +347,10 @@ if (!$selected_id || list_updated('customer_id')) tabbed_content_start('tabs', array( 'settings' => array(_('&General settings'), $selected_id), 'contacts' => array(_('&Contacts'), $selected_id), - 'transactions' => array(_('&Transactions'), $selected_id), - 'orders' => array(_('Sales &Orders'), $selected_id), + 'transactions' => array(_('&Transactions'), + ($_SESSION["wa_current_user"]->can_access_page('SA_SALESTRANSVIEW') ? $selected_id : null)), + 'orders' => array(_('Sales &Orders'), + ($_SESSION["wa_current_user"]->can_access_page('SA_SALESTRANSVIEW') ? $selected_id : null)), )); switch (get_post('_tabs_sel')) {