X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fmanage%2Fsuppliers.php;h=fb2409ee6f73a446e053c1d2988eeed1141ea00b;hb=ed66cc3976ee61be8edfbf91947ee9ba6d3882e9;hp=b0c7c35b338523a950e38da6f53a6e94e42c3632;hpb=3d95c6844745f183ebab970251cd254dd6cbdcec;p=fa-stable.git diff --git a/purchasing/manage/suppliers.php b/purchasing/manage/suppliers.php index b0c7c35b..fb2409ee 100644 --- a/purchasing/manage/suppliers.php +++ b/purchasing/manage/suppliers.php @@ -13,17 +13,18 @@ $page_security = 'SA_SUPPLIER'; $path_to_root = "../.."; include($path_to_root . "/includes/db_pager.inc"); include_once($path_to_root . "/includes/session.inc"); -include_once($path_to_root . "/includes/ui/attachment.inc"); + $js = ""; if ($SysPrefs->use_popup_windows) $js .= get_js_open_window(900, 500); if (user_use_date_picker()) $js .= get_js_date_picker(); -page(_($help_context = "Suppliers"), false, false, "", $js); +page(_($help_context = "Suppliers"), @$_REQUEST['popup'], false, "", $js); include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/includes/ui/contacts_view.inc"); +include_once($path_to_root . "/includes/ui/attachment.inc"); check_db_has_tax_groups(_("There are no tax groups defined in the system. At least one tax group is required before proceeding.")); @@ -280,14 +281,14 @@ function supplier_settings(&$supplier_id) if ($supplier_id) { submit_center_first('submit', _("Update Supplier"), - _('Update supplier data'), $page_nested ? true : 'false'); + _('Update supplier data'), $page_nested ? true : false); submit_return('select', get_post('supplier_id'), _("Select this supplier and return to document entry.")); submit_center_last('delete', _("Delete Supplier"), _('Delete supplier data if have been never used'), true); } else { - submit_center('submit', _("Add New Supplier Details"), true, '', 'false'); + submit_center('submit', _("Add New Supplier Details"), true, '', false); } div_end(); }