X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fmanage%2Fsuppliers.php;h=4c127b7e004eb29ecbbfbd365a8190f272373a5a;hb=2ed9a14c68002e4394fb74a736cad6a2591d5e44;hp=d17950c4800b9ecfe7fd3fcddb55a298a2669a66;hpb=95fd152649f9383cee8680762daf3430e8250bd6;p=fa-stable.git diff --git a/purchasing/manage/suppliers.php b/purchasing/manage/suppliers.php index d17950c4..4c127b7e 100644 --- a/purchasing/manage/suppliers.php +++ b/purchasing/manage/suppliers.php @@ -167,6 +167,7 @@ function supplier_settings(&$supplier_id) end_outer_table(1); div_start('controls'); + if (@$_REQUEST['popup']) hidden('popup', 1); if ($supplier_id) { submit_center_first('submit', _("Update Supplier"), @@ -278,6 +279,7 @@ elseif (isset($_POST['delete']) && $_POST['delete'] != "") unset($_SESSION['supplier_id']); $supplier_id = ''; $Ajax->activate('_page_body'); + display_notification("#" . $_POST['supplier_id'] . " " . _("Supplier has been deleted.")); } //end if Delete supplier } @@ -308,8 +310,8 @@ if (!$supplier_id) tabbed_content_start('tabs', array( 'settings' => array(_('&General settings'), $supplier_id), 'contacts' => array(_('&Contacts'), $supplier_id), - 'transactions' => array(_('&Transactions'), $supplier_id), - 'orders' => array(_('Purchase &Orders'), $supplier_id), + 'transactions' => array(_('&Transactions'), (user_check_access('SA_SUPPTRANSVIEW') ? $supplier_id : null)), + 'orders' => array(_('Purchase &Orders'), (user_check_access('SA_SUPPTRANSVIEW') ? $supplier_id : null)), )); switch (get_post('_tabs_sel')) {