Condense amounts per account code and post them to the database (table TMP_GLSUM).
Definition at line 283 of file account.h.
typedef std::map<Account::Oid, GlAmounts> OSB_LIB::GlSummary::GlSumBuf [private] |
OSB_LIB::GlSummary::GlSummary | ( | ) | [inline] |
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.
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.
s | Database Session. |
GlSumBuf OSB_LIB::GlSummary::glSumBuf_ [private] |
long OSB_LIB::GlSummary::sequenceNo_ [private] |