diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-09 14:55:36 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-09 14:55:36 -0400 |
commit | 11dc80b6184f7a48400a76ee226ef1c9be819145 (patch) | |
tree | 66baa75f2e9c1b49cf7bfbe1735ed815180e4f49 /src | |
parent | 555e953dc17038039cf0bc253ef74b961de0b0f2 (diff) | |
download | fork-ledger-11dc80b6184f7a48400a76ee226ef1c9be819145.tar.gz fork-ledger-11dc80b6184f7a48400a76ee226ef1c9be819145.tar.bz2 fork-ledger-11dc80b6184f7a48400a76ee226ef1c9be819145.zip |
Don't apply an automated entry to a generated transaction.
Diffstat (limited to 'src')
-rw-r--r-- | src/entry.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/entry.cc b/src/entry.cc index 245a95c2..530d12fb 100644 --- a/src/entry.cc +++ b/src/entry.cc @@ -320,11 +320,10 @@ bool entry_t::valid() const void auto_entry_t::extend_entry(entry_base_t& entry, bool post) { - xacts_list initial_xacts(entry.xacts.begin(), - entry.xacts.end()); + xacts_list initial_xacts(entry.xacts.begin(), entry.xacts.end()); foreach (xact_t * initial_xact, initial_xacts) { - if (predicate(*initial_xact)) { + if (! initial_xact->has_flags(XACT_AUTO) && predicate(*initial_xact)) { foreach (xact_t * xact, xacts) { amount_t amt; assert(xact->amount); |