X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Finventory.php;h=e1c941f61f8adb9fd5fc4823b4e8449d30602b6b;hb=7e6e0807990447d2977b970c3a0fd28dc9250194;hp=9ef37bd0aa1633cf2d7078942fd784bed15b8577;hpb=e3b48984f41047ad16201ff1e757af02d228d79e;p=fa-stable.git diff --git a/applications/inventory.php b/applications/inventory.php index 9ef37bd0..e1c941f6 100644 --- a/applications/inventory.php +++ b/applications/inventory.php @@ -1,55 +1,60 @@ . ***********************************************************************/ - class inventory_app extends application +class inventory_app extends application +{ + function __construct() { - function inventory_app() - { - global $installed_modules; - $this->application("stock",_("Items and Inventory")); + parent::__construct("stock", _($this->help_context = "&Items and Inventory")); - $this->add_module(_("Transactions")); - $this->add_lapp_function(0, _("Inventory Location &Transfers"),"inventory/transfers.php?NewTransfer=1"); - $this->add_lapp_function(0, _("Inventory &Adjustments"),"inventory/adjustments.php?NewAdjustment=1"); + $this->add_module(_("Transactions")); + $this->add_lapp_function(0, _("Inventory Location &Transfers"), + "inventory/transfers.php?NewTransfer=1", 'SA_LOCATIONTRANSFER', MENU_TRANSACTION); + $this->add_lapp_function(0, _("Inventory &Adjustments"), + "inventory/adjustments.php?NewAdjustment=1", 'SA_INVENTORYADJUSTMENT', MENU_TRANSACTION); - $this->add_module(_("Inquiries and Reports")); - $this->add_lapp_function(1, _("Inventory Item &Movements"),"inventory/inquiry/stock_movements.php?"); - $this->add_lapp_function(1, _("Inventory Item &Status"),"inventory/inquiry/stock_status.php?"); - $this->add_rapp_function(1, _("Inventory &Reports"),"reporting/reports_main.php?Class=2"); + $this->add_module(_("Inquiries and Reports")); + $this->add_lapp_function(1, _("Inventory Item &Movements"), + "inventory/inquiry/stock_movements.php?", 'SA_ITEMSTRANSVIEW', MENU_INQUIRY); + $this->add_lapp_function(1, _("Inventory Item &Status"), + "inventory/inquiry/stock_status.php?", 'SA_ITEMSSTATVIEW', MENU_INQUIRY); + $this->add_rapp_function(1, _("Inventory &Reports"), + "reporting/reports_main.php?Class=2", 'SA_ITEMSTRANSVIEW', MENU_REPORT); - $this->add_module(_("Maintenance")); - $this->add_lapp_function(2, _("&Items"),"inventory/manage/items.php?"); - $this->add_lapp_function(2, _("&Foreign Item Codes"),"inventory/manage/item_codes.php?"); - $this->add_lapp_function(2, _("Sales &Kits"),"inventory/manage/sales_kits.php?"); - $this->add_lapp_function(2, _("Item &Categories"),"inventory/manage/item_categories.php?"); - $this->add_lapp_function(2, _("Inventory &Locations"),"inventory/manage/locations.php?"); - $this->add_rapp_function(2, _("Inventory &Movement Types"),"inventory/manage/movement_types.php?"); - $this->add_rapp_function(2, _("Item Ta&x Types"),"taxes/item_tax_types.php?"); - $this->add_rapp_function(2, _("&Units of Measure"),"inventory/manage/item_units.php?"); - $this->add_rapp_function(2, _("&Reorder Levels"),"inventory/reorder_level.php?"); + $this->add_module(_("Maintenance")); + $this->add_lapp_function(2, _("&Items"), + "inventory/manage/items.php?", 'SA_ITEM', MENU_ENTRY); + $this->add_lapp_function(2, _("&Foreign Item Codes"), + "inventory/manage/item_codes.php?", 'SA_FORITEMCODE', MENU_MAINTENANCE); + $this->add_lapp_function(2, _("Sales &Kits"), + "inventory/manage/sales_kits.php?", 'SA_SALESKIT', MENU_MAINTENANCE); + $this->add_lapp_function(2, _("Item &Categories"), + "inventory/manage/item_categories.php?", 'SA_ITEMCATEGORY', MENU_MAINTENANCE); + $this->add_rapp_function(2, _("Inventory &Locations"), + "inventory/manage/locations.php?", 'SA_INVENTORYLOCATION', MENU_MAINTENANCE); + $this->add_rapp_function(2, _("&Units of Measure"), + "inventory/manage/item_units.php?", 'SA_UOM', MENU_MAINTENANCE); + $this->add_rapp_function(2, _("&Reorder Levels"), + "inventory/reorder_level.php?", 'SA_REORDER', MENU_MAINTENANCE); - $this->add_module(_("Pricing and Costs")); - $this->add_lapp_function(3, _("Sales &Pricing"),"inventory/prices.php?"); - $this->add_lapp_function(3, _("Purchasing &Pricing"),"inventory/purchasing_data.php?"); - $this->add_rapp_function(3, _("Standard &Costs"),"inventory/cost_update.php?"); - if (count($installed_modules) > 0) - { - foreach ($installed_modules as $mod) - { - if ($mod["tab"] == "stock") - $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?"); - } - } - } + $this->add_module(_("Pricing and Costs")); + $this->add_lapp_function(3, _("Sales &Pricing"), + "inventory/prices.php?", 'SA_SALESPRICE', MENU_MAINTENANCE); + $this->add_lapp_function(3, _("Purchasing &Pricing"), + "inventory/purchasing_data.php?", 'SA_PURCHASEPRICING', MENU_MAINTENANCE); + $this->add_rapp_function(3, _("Standard &Costs"), + "inventory/cost_update.php?", 'SA_STANDARDCOST', MENU_MAINTENANCE); + + $this->add_extensions(); } +} -?> \ No newline at end of file