(class journal_t): Added a "basket" account member, which if set is
the account to which all single-transaction entries are balanced.
This commit is contained in:
parent
5175fdcd6c
commit
86941556b8
1 changed files with 2 additions and 1 deletions
|
|
@ -320,6 +320,7 @@ class journal_t
|
|||
{
|
||||
public:
|
||||
account_t * master;
|
||||
account_t * basket;
|
||||
entries_list entries;
|
||||
strings_list sources;
|
||||
std::string price_db;
|
||||
|
|
@ -332,7 +333,7 @@ class journal_t
|
|||
|
||||
std::list<entry_finalizer_t *> entry_finalize_hooks;
|
||||
|
||||
journal_t() {
|
||||
journal_t() : basket(NULL) {
|
||||
DEBUG_PRINT("ledger.memory.ctors", "ctor journal_t");
|
||||
master = new account_t(NULL, "");
|
||||
master->journal = this;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue