X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fmanage%2Fcustomers.php;h=3810e2b4f2c271a0688ce61d4056c57d9d0a05e0;hb=65fc1fa9fcb655a802ee8bd7b73dc211ed0ed4ed;hp=953d776289d2fbf2f16e5bf40af2388fe3178efb;hpb=95fd152649f9383cee8680762daf3430e8250bd6;p=fa-stable.git diff --git a/sales/manage/customers.php b/sales/manage/customers.php index 953d7762..3810e2b4 100644 --- a/sales/manage/customers.php +++ b/sales/manage/customers.php @@ -301,6 +301,7 @@ function customer_settings($selected_id) end_outer_table(1); div_start('controls'); + if (@$_REQUEST['popup']) hidden('popup', 1); if (!$selected_id) { submit_center('submit', _("Add New Customer"), true, '', 'default'); @@ -349,8 +350,8 @@ if (!$selected_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'), (user_check_access('SA_SALESTRANSVIEW') ? $selected_id : null)), + 'orders' => array(_('Sales &Orders'), (user_check_access('SA_SALESTRANSVIEW') ? $selected_id : null)), )); switch (get_post('_tabs_sel')) {