OSB_LIB::GlSummary Class Reference

Collaboration diagram for OSB_LIB::GlSummary:

Collaboration graph
[legend]
List of all members.

Detailed Description

General Ledger (GL) summary.

Condense amounts per account code and post them to the database (table TMP_GLSUM).

Definition at line 283 of file account.h.

Public Member Functions

Private Types

Private Attributes

Classes


Member Typedef Documentation

typedef std::map<Account::Oid, GlAmounts> OSB_LIB::GlSummary::GlSumBuf [private]

GL summary buffer type.

Definition at line 326 of file account.h.


Constructor & Destructor Documentation

OSB_LIB::GlSummary::GlSummary (  )  [inline]

Default constructor.

Definition at line 286 of file account.h.


Member Function Documentation

void OSB_LIB::GlSummary::addAmount ( const Account::Oid accountCode,
Account::Side  side,
const Money amount 
)

Add amount to GL summary buffer.

This function uses accountCode to search GL summary buffer. If the account code doesn't exist yet then it will create a new record. Otherwise it will add the amount into it.

Parameters:
accountCode General ledger account to post to.
side Side of the account to post to.
amount The amount to post.

void OSB_LIB::GlSummary::clear (  ) 

Clear GL summary buffer.

This function will will clear GL buffer.

void OSB_LIB::GlSummary::post ( const OSB_DB::Session s  ) 

Post GL summary buffer to table TMP_GLSUM.

This function will will post the GL buffer to table TMP_GLSUM.

Parameters:
s Database Session.


Member Data Documentation

GlSumBuf OSB_LIB::GlSummary::glSumBuf_ [private]

GL summary buffer.

Definition at line 328 of file account.h.

long OSB_LIB::GlSummary::sequenceNo_ [private]

Unique sequence in the class.

Definition at line 329 of file account.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:10:34 2006 for OSB Library by  doxygen 1.4.7