Added fixed assets module
[fa-stable.git] / applications / fixed_assets.php
diff --git a/applications/fixed_assets.php b/applications/fixed_assets.php
new file mode 100644 (file)
index 0000000..35aa150
--- /dev/null
@@ -0,0 +1,56 @@
+<?php
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU General Public License, GPL,
+       as published by the Free Software Foundation, either version 3
+       of the License, or (at your option) any later version.
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
+***********************************************************************/
+class assets_app extends application
+{
+       function assets_app()
+       {
+               $this->application("assets", _($this->help_context = "&Fixed Assets"));
+                       
+               $this->add_module(_("Transactions"));
+               $this->add_lapp_function(0, _("FA &Purchase"),
+                       "purchasing/po_entry_items.php?NewInvoice=Yes&FixedAsset=1", 'SA_SUPPLIERINVOICE', MENU_TRANSACTION);
+               $this->add_lapp_function(0, _("FA Location &Transfers"),
+                       "inventory/transfers.php?NewTransfer=1&FixedAsset=1", 'SA_ASSETTRANSFER', MENU_TRANSACTION);
+               $this->add_lapp_function(0, _("FA &Disposal"),
+                       "inventory/adjustments.php?NewAdjustment=1&FixedAsset=1", 'SA_ASSETDISPOSAL', MENU_TRANSACTION);
+               $this->add_lapp_function(0, _("FA &Sale"),
+                       "sales/sales_order_entry.php?NewInvoice=0&FixedAsset=1", 'SA_SALESINVOICE', MENU_TRANSACTION);
+               $this->add_rapp_function(0, _("Process &Depreciation"),
+                       "fixed_assets/process_depreciation.php", 'SA_DEPRECIATION', MENU_MAINTENANCE);
+    // TODO: needs work
+               //$this->add_rapp_function(0, _("FA &Revaluation"),
+       //              "inventory/cost_update.php?FixedAsset=1", 'SA_STANDARDCOST', MENU_MAINTENANCE);
+
+               $this->add_module(_("Inquiries and Reports"));
+               $this->add_lapp_function(1, _("FA Item In&quiry"),
+                       "fixed_assets/inquiry/stock_inquiry.php?", 'SA_ASSETSANALYTIC', MENU_INQUIRY);
+
+               $this->add_rapp_function(1, _("FA Item &Movements"),
+                       "inventory/inquiry/stock_movements.php?FixedAsset=1", 'SA_ASSETSTRANSVIEW', MENU_INQUIRY);
+
+               $this->add_module(_("Maintenance"));
+               
+               $this->add_lapp_function(2, _("Fixed &Assets"),
+                       "inventory/manage/items.php?FixedAsset=1", 'SA_ASSET', MENU_ENTRY);
+               $this->add_rapp_function(2, _("FA &Locations"),
+                       "inventory/manage/locations.php?FixedAsset=1", 'SA_INVENTORYLOCATION', MENU_MAINTENANCE);
+               $this->add_rapp_function(2, _("FA Item &Categories"),
+                       "inventory/manage/item_categories.php?FixedAsset=1", 'SA_ASSETCATEGORY', MENU_MAINTENANCE);
+               $this->add_rapp_function(2, _("FA Cl&asses"),
+                       "fixed_assets/fixed_asset_classes.php", 'SA_ASSETCLASS', MENU_MAINTENANCE);
+
+               $this->add_extensions();
+       }
+}
+
+
+?>