SYNOPSIS
This library contains the base utility functions for creating, saving, and retrieving depreciation categories of assets.STANDARD PROPERTIES
- id
- Integer ID of record.
- lable
- Text description of asset class
- asset_account_id
- Integer id of asset account.
- dep_account_id
- Integer id of depreciation account.
- method
- Integer id of depreciation method.
METHODS
- save
-
Properties used:
id: (Optional) ID of existing class to overwrite.
asset_account_id: Account id to store asset values
dep_account_id: Account id for depreciation information
method: ID of depreciation method
label: Name of the asset class
unit_label: Label of the depreciation unit
Typically sets ID if no match found or if ID not provided.
- get_metadata
-
sets:
asset_accounts to arrayref of asset accounts dep_accounts to arrayref of depreciation accounts dep_methods to arrayrefo of depreciation methods
- get_asset_class()
-
Requires id to be set.
Sets all other standard properties if the record is found.
- list_asset_classes
- Sets classes to a list of all asset classes, ordered as per db.
Copyright (C) 2010, The LedgerSMB core team.
This file is licensed under the Gnu General Public License version 2, or at your option any later version. A copy of the license should have been included with your software.