LedgerSMB::DBObject::Draft(3pm)

LedgerSMB::DBObject::Draft3pm

Ledgersmb base class for managing "drafts."

Usage

This module contains the methods for managing unapproved, unbatched financial transactions. This does not contain facities for creating such transactions, only searching for them, and posting them to the books.

Methods

search()

returns a list of results for the search criteria. This list is also stored in $draft->{search_resuts}

Requres $self->{type} to be one of 'ar', 'ap', or 'gl'

Optional hash entries for search criteria are:

with_accno: Draft transaction against a specific account. from_date: Earliest date for match to_date: Latest date for match amount_le: total less than or equal to amount_ge: total greater than or equal to

approve()

Approves the draft identified by the transaction id in $draft->{id}. Once approved, the draft shows up in financial reports.

delete()

Deletes the draft associated with transaction id in $draft->{id}.

Naturally, only unapproved transactions can be deleted. Once posted to the books, a draft may not be deleted.

Releases

2 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7
  2. 8

From ledgersmb 1.3.40-1 in Debian 8 (Jessie). Parsed by carta from the page's man source.