35aa150a8a02553944d311afeb8a28ef58607c76
[fa-stable.git] / applications / fixed_assets.php
1 <?php
2 /**********************************************************************
3     Copyright (C) FrontAccounting, LLC.
4         Released under the terms of the GNU General Public License, GPL,
5         as published by the Free Software Foundation, either version 3
6         of the License, or (at your option) any later version.
7     This program is distributed in the hope that it will be useful,
8     but WITHOUT ANY WARRANTY; without even the implied warranty of
9     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
11 ***********************************************************************/
12 class assets_app extends application
13 {
14         function assets_app()
15         {
16                 $this->application("assets", _($this->help_context = "&Fixed Assets"));
17                         
18                 $this->add_module(_("Transactions"));
19                 $this->add_lapp_function(0, _("FA &Purchase"),
20                         "purchasing/po_entry_items.php?NewInvoice=Yes&FixedAsset=1", 'SA_SUPPLIERINVOICE', MENU_TRANSACTION);
21                 $this->add_lapp_function(0, _("FA Location &Transfers"),
22                         "inventory/transfers.php?NewTransfer=1&FixedAsset=1", 'SA_ASSETTRANSFER', MENU_TRANSACTION);
23                 $this->add_lapp_function(0, _("FA &Disposal"),
24                         "inventory/adjustments.php?NewAdjustment=1&FixedAsset=1", 'SA_ASSETDISPOSAL', MENU_TRANSACTION);
25                 $this->add_lapp_function(0, _("FA &Sale"),
26                         "sales/sales_order_entry.php?NewInvoice=0&FixedAsset=1", 'SA_SALESINVOICE', MENU_TRANSACTION);
27                 $this->add_rapp_function(0, _("Process &Depreciation"),
28                         "fixed_assets/process_depreciation.php", 'SA_DEPRECIATION', MENU_MAINTENANCE);
29     // TODO: needs work
30                 //$this->add_rapp_function(0, _("FA &Revaluation"),
31         //              "inventory/cost_update.php?FixedAsset=1", 'SA_STANDARDCOST', MENU_MAINTENANCE);
32
33                 $this->add_module(_("Inquiries and Reports"));
34                 $this->add_lapp_function(1, _("FA Item In&quiry"),
35                         "fixed_assets/inquiry/stock_inquiry.php?", 'SA_ASSETSANALYTIC', MENU_INQUIRY);
36
37                 $this->add_rapp_function(1, _("FA Item &Movements"),
38                         "inventory/inquiry/stock_movements.php?FixedAsset=1", 'SA_ASSETSTRANSVIEW', MENU_INQUIRY);
39
40                 $this->add_module(_("Maintenance"));
41                 
42                 $this->add_lapp_function(2, _("Fixed &Assets"),
43                         "inventory/manage/items.php?FixedAsset=1", 'SA_ASSET', MENU_ENTRY);
44                 $this->add_rapp_function(2, _("FA &Locations"),
45                         "inventory/manage/locations.php?FixedAsset=1", 'SA_INVENTORYLOCATION', MENU_MAINTENANCE);
46                 $this->add_rapp_function(2, _("FA Item &Categories"),
47                         "inventory/manage/item_categories.php?FixedAsset=1", 'SA_ASSETCATEGORY', MENU_MAINTENANCE);
48                 $this->add_rapp_function(2, _("FA Cl&asses"),
49                         "fixed_assets/fixed_asset_classes.php", 'SA_ASSETCLASS', MENU_MAINTENANCE);
50
51                 $this->add_extensions();
52         }
53 }
54
55
56 ?>