---
name: "LedgerSMB::DBObject::Asset_Class"
section: "3pm"
platform: "linux"
package: "ledgersmb"
version: "1.3.40-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/LedgerSMB::DBObject::Asset_Class"
---

# LedgerSMB::DBObject::Asset\_Class(3pm)

LedgerSMB Base Class for Asset Classes

## NAME

LedgerSMB::DBObject::Asset\_Class - LedgerSMB Base Class for Asset Classes

## 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.
