[0004212] Work Order Entry: fixed error when voided WO refence is reused.
[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 __construct()
15         {
16                 parent::__construct("assets", _($this->help_context = "&Fixed Assets"));
17                         
18                 $this->add_module(_("Transactions"));
19                 $this->add_lapp_function(0, _("Fixed Assets &Purchase"),
20                         "purchasing/po_entry_items.php?NewInvoice=Yes&FixedAsset=1", 'SA_SUPPLIERINVOICE', MENU_TRANSACTION);
21                 $this->add_lapp_function(0, _("Fixed Assets Location &Transfers"),
22                         "inventory/transfers.php?NewTransfer=1&FixedAsset=1", 'SA_ASSETTRANSFER', MENU_TRANSACTION);
23                 $this->add_lapp_function(0, _("Fixed Assets &Disposal"),
24                         "inventory/adjustments.php?NewAdjustment=1&FixedAsset=1", 'SA_ASSETDISPOSAL', MENU_TRANSACTION);
25                 $this->add_lapp_function(0, _("Fixed Assets &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, _("Fixed Assets &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, _("Fixed Assets &Movements"),
35                         "inventory/inquiry/stock_movements.php?FixedAsset=1", 'SA_ASSETSTRANSVIEW', MENU_INQUIRY);
36                 $this->add_lapp_function(1, _("Fixed Assets In&quiry"),
37                         "fixed_assets/inquiry/stock_inquiry.php?", 'SA_ASSETSANALYTIC', MENU_INQUIRY);
38
39
40                 $this->add_rapp_function(1, _("Fixed Assets &Reports"),
41                         "reporting/reports_main.php?Class=7", 'SA_ASSETSANALYTIC', MENU_REPORT);
42
43                 $this->add_module(_("Maintenance"));
44                 
45                 $this->add_lapp_function(2, _("Fixed &Assets"),
46                         "inventory/manage/items.php?FixedAsset=1", 'SA_ASSET', MENU_ENTRY);
47                 $this->add_rapp_function(2, _("Fixed Assets &Locations"),
48                         "inventory/manage/locations.php?FixedAsset=1", 'SA_INVENTORYLOCATION', MENU_MAINTENANCE);
49                 $this->add_rapp_function(2, _("Fixed Assets &Categories"),
50                         "inventory/manage/item_categories.php?FixedAsset=1", 'SA_ASSETCATEGORY', MENU_MAINTENANCE);
51                 $this->add_rapp_function(2, _("Fixed Assets Cl&asses"),
52                         "fixed_assets/fixed_asset_classes.php", 'SA_ASSETCLASS', MENU_MAINTENANCE);
53
54                 $this->add_extensions();
55         }
56 }
57
58
59 ?>