LedgerSMB::DBObject::EOY(3pm) User Contributed Perl Documentation LedgerSMB::DBObject::EOY(3pm)NAME
LedgerSMB::DBObject::EOY - End of Year handling module
SYNOPSYS
This class contains methods for end of year entry.
BASIC PROPERTIES
end_date specifies the end date for a closed period.
reference specifies the gl reference field associated with the account closure
description specifies the gl description field associated with the account closure
retention_acc_id specifies the account id used as a retaining account.
METHODS
$eoy->checkpoint_only();
This creates account checkpoints at $eoy->{end_date}. This has two uses: 1) Can be used to "close" books without zeroing
income/expense accounts. This prevents data from being inserted for earlier dates.
2) This can be used to improve performance by creating a "lookback" point.
$eoy->reopen_books()
This reverses any end of year transaction on $eoy->{end_date}, and deletes checkpoints for that day.
$eoy->close_books()
Requires all properies in BASIC PROPERTIES to be set. This creates a gl yearend transaction, and moves income/expenses to the selected
equity account for retained earnings.
$eoy->list_earnings_accounts
Returns a list of equity accounts, and sets $eoy->{earnings_accounts} to a list of hashrefs. These are used to select retained
earnings accounts in closing books.
COPYRYIGHT
Copyright (C) 2009 The LedgerSMB Core Team. This may be re-used as permitted by the GNU General Public License v 2 or at your option any
later version. Please see included License.txt for details.
perl v5.14.2 2012-03-25 LedgerSMB::DBObject::EOY(3pm)
Check Out this Related Man Page
LedgerSMB::DBObject::Asset_Report(3pm) User Contributed Perl Documentation LedgerSMB::DBObject::Asset_Report(3pm)NAME
LedgerSMB::DBObject::Asset_Report - LedgerSMB Base Class for Asset Reports
SYNOPSIS
This library contains the base utility functions for creating, saving, and retrieving depreciation categories of asset depreciation and
disposal reports.
STANDARD PROPERTIES
id int
Integer id of asset report
report_date date
Effective date of report
gl_id bigint
ID of GL transaction if applicable and approved.
asset_class bigint
ID of asset class for the report the assets are
report_class int
Integer of the report class desired.
entered_by bigint
Integer id of the individual who entered the report
approved_by bigint
Integer id of the individual who approved the report
entered_at timestamp
Timestamp the report was created
approved_at timestamp
Timestamp the report was approved
depreciated_qty
Number of units (production or time) depreciated
dont_approve bool
If true, do not approve, ever.
submitted bool
If true, submitted for approval
METHODS
save
Uses standard properties
Saves report to the database. Sets ID.
For each asset to be added to the report, we see:
for each row, id_$row contains the asset id for that row. Let this be $id
if asset_$id, the asset is added. Each asset also has: amount_$id dm_$id percent_$id
get Gets report from the database.
get_nbv
Returns line items for the Net Book Value report.
generate
Properties used:
* report_id int: Report to enter the transactions into, * accum_account_id int: ID for accumulated depreciation.
approve
Properties used:
id
For depreciation accounts, expense_acct must be set.
For disposal accounts, gain_acct and loss_acct must be set.
Approves the referenced transaction and creates a GL draft (which must then be approved.
search
Searches for matching asset reports for review and approval.
Search criteria in properties:
* start_date date * end_date date * asset_class int * approved bool * entered_by int
Start and end dates specify the date range (inclusive) and all other matches are exact. Undefs match all records.
get_metadata
Sets the following properties:
* asset_classes: List of asset classes * exp_accounts: List of expense accounts * gain_accounts: List of gain accounts *
loss_accounts: list of loss accounts * disp_methods: List of disposal methods
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.
perl v5.14.2 2012-03-25 LedgerSMB::DBObject::Asset_Report(3pm)