From a32173ace60df5a1e9414f5e95b556c436f62718 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 3 Aug 2004 04:34:50 +0000 Subject: changes --- autoxact.cc | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 autoxact.cc (limited to 'autoxact.cc') 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 -- cgit v1.2.3