diff options
author | John Wiegley <johnw@newartisans.com> | 2004-09-20 03:25:28 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-09-20 03:25:28 -0400 |
commit | 5429792edc077d8c65d7bbf0f98c3d0e59837775 (patch) | |
tree | 3d068afe20d09862f064367cfdef58bc107a8558 /autoxact.cc | |
parent | 18879bbe85cdef7a60d0692e17b9c835c81e77fc (diff) | |
download | fork-ledger-5429792edc077d8c65d7bbf0f98c3d0e59837775.tar.gz fork-ledger-5429792edc077d8c65d7bbf0f98c3d0e59837775.tar.bz2 fork-ledger-5429792edc077d8c65d7bbf0f98c3d0e59837775.zip |
the "bal" command mostly works now in main.py; added a finalize_entry hook
Diffstat (limited to 'autoxact.cc')
-rw-r--r-- | autoxact.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/autoxact.cc b/autoxact.cc index d358daf3..cc07ad2f 100644 --- a/autoxact.cc +++ b/autoxact.cc @@ -27,4 +27,15 @@ void automated_transaction_t::extend_entry(entry_t * entry) } } +automated_transactions_t * current_auto_xacts = NULL; + +bool handle_auto_xacts(entry_t * entry) +{ + if (current_auto_xacts && + ! current_auto_xacts->automated_transactions.empty()) + current_auto_xacts->extend_entry(entry); + + return true; +} + } // namespace ledger |