From a9e7141956ef0a60b58e9a627beee93cd35ed43c Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 23 Jan 2020 22:51:12 +0100 Subject: [PATCH] Optimizing the F2, F3 and F4 keys in sales/purchase forms. --- includes/ui/ui_controls.inc | 10 +++++----- inventory/manage/items.php | 2 +- purchasing/manage/suppliers.php | 2 +- sales/manage/customers.php | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/ui/ui_controls.inc b/includes/ui/ui_controls.inc index c2dbae05..748889d6 100644 --- a/includes/ui/ui_controls.inc +++ b/includes/ui/ui_controls.inc @@ -503,15 +503,15 @@ function tab_visible($name, $tab) */ $popup_editors = array( 'customer' => array('/sales/manage/customers.php?debtor_no=', - 113, _("Customers"), 900, 600), + 113, _("Customers"), 900, 550), 'branch' => array('/sales/manage/customer_branches.php?SelectedBranch=', - 114, _("Branches"), 900, 700), + 114, _("Branches"), 900, 650), 'supplier' => array('/purchasing/manage/suppliers.php?supplier_id=', - 113, _("Suppliers"), 900, 700), + 113, _("Suppliers"), 1150, 550), 'item' => array('/inventory/manage/items.php?stock_id=', - 115, _("Items"), 800, 600), + 115, _("Items"), 1000, 500), 'fa_item' => array('/inventory/manage/items.php?FixedAsset=1&stock_id=', - 115, _("Items"), 800, 600) + 115, _("Items"), 1000, 500) ); /* Bind editors for various selectors. diff --git a/inventory/manage/items.php b/inventory/manage/items.php index d0ed1aa5..f99bc474 100644 --- a/inventory/manage/items.php +++ b/inventory/manage/items.php @@ -643,7 +643,7 @@ end_form(); //------------------------------------------------------------------------------------ -end_page(); +end_page(@$_REQUEST['popup']); function generateBarcode() { $tmpBarcodeID = ""; diff --git a/purchasing/manage/suppliers.php b/purchasing/manage/suppliers.php index fb2409ee..3be5bc5f 100644 --- a/purchasing/manage/suppliers.php +++ b/purchasing/manage/suppliers.php @@ -351,5 +351,5 @@ tabbed_content_start('tabs', array( br(); tabbed_content_end(); end_form(); -end_page(); +end_page(@$_REQUEST['popup']); diff --git a/sales/manage/customers.php b/sales/manage/customers.php index 92f2aca3..7169596c 100644 --- a/sales/manage/customers.php +++ b/sales/manage/customers.php @@ -383,5 +383,5 @@ br(); tabbed_content_end(); end_form(); -end_page(); +end_page(@$_REQUEST['popup']); -- 2.30.2