end_outer_table(1);
div_start('controls');
+ if (@$_REQUEST['popup']) hidden('popup', 1);
if ($supplier_id)
{
submit_center_first('submit', _("Update Supplier"),
unset($_SESSION['supplier_id']);
$supplier_id = '';
$Ajax->activate('_page_body');
+ display_notification("#" . $_POST['supplier_id'] . " " . _("Supplier has been deleted."));
} //end if Delete supplier
}
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')) {