Introduction
Many a time we need to add Customers, Branches, Suppliers or Items on the fly when in other form pages where these are form elements. In such instances, FA's hotkey functionality comes to our rescue. The following are the default hotkeys used in FA:
- F2 - Customers and Suppliers (generally both do not occur simultaneously)
- F3 - Branches
- F4 - Items
Available values for hotkey input codes for F1 - F12 are decimal 112 - 123. The hotkey number (#) in the F# is obtained by hotkey code - 111.
Locations
Somewhere around line 450 in includes/ui/ui_controls.inc the URI, hotkey code, Field Context, pop screen width and height are provided in the $popup_editors array:
$popup_editors = array( 'customer' => array('/sales/manage/customers.php?debtor_no=', 113, _("Customers"), 900, 500), 'branch' => array('/sales/manage/customer_branches.php?SelectedBranch=', 114, _("Branches"), 900, 700), 'supplier' => array('/purchasing/manage/suppliers.php?supplier_id=', 113, _("Suppliers"), 900, 700), 'item' => array('/inventory/manage/items.php?stock_id=', 115, _("Items"), 800, 600) );