diff options
Diffstat (limited to 'autoxact.cc')
-rw-r--r-- | autoxact.cc | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/autoxact.cc b/autoxact.cc deleted file mode 100644 index bed69e2e..00000000 --- a/autoxact.cc +++ /dev/null @@ -1,30 +0,0 @@ -#include "autoxact.h" - -namespace ledger { - -void automated_transaction_t::extend_entry(entry_t& entry) -{ - transactions_deque initial_xacts(entry.transactions.begin(), - entry.transactions.end()); - - for (transactions_deque::iterator i = initial_xacts.begin(); - i != initial_xacts.end(); - i++) - if (predicate(**i)) - for (transactions_deque::iterator t = transactions.begin(); - t != transactions.end(); - t++) { - amount_t amt; - if ((*t)->amount.commodity().symbol.empty()) - amt = (*i)->amount * (*t)->amount; - else - amt = (*t)->amount; - - transaction_t * xact - = new transaction_t((*t)->account, amt, - (*t)->flags | TRANSACTION_AUTO); - entry.add_transaction(xact); - } -} - -} // namespace ledger |