From 70b3eda8d13fd6f8805791b52c1191619cf1fc03 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 25 Feb 2006 13:17:36 +0000 Subject: *** no comment *** --- journal.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'journal.cc') diff --git a/journal.cc b/journal.cc index 9e073388..232bb97a 100644 --- a/journal.cc +++ b/journal.cc @@ -55,7 +55,7 @@ bool transaction_t::valid() const if (cost && ! cost->valid()) return false; - if (flags & ~0x000f) + if (flags & ~0x001f) return false; return true; @@ -109,6 +109,7 @@ bool entry_base_t::finalize() // The amount doesn't need to be set because the code below will // balance this transaction against the other. add_transaction(nxact); + nxact->flags |= TRANSACTION_CALCULATED; } // If one transaction of a two-line transaction is of a different @@ -191,6 +192,7 @@ bool entry_base_t::finalize() } else { transaction_t * nxact = new transaction_t((*x)->account); add_transaction(nxact); + nxact->flags |= TRANSACTION_CALCULATED; nxact->amount = amt; } @@ -203,6 +205,7 @@ bool entry_base_t::finalize() case value_t::AMOUNT: (*x)->amount = *((amount_t *) balance.data); (*x)->amount.negate(); + (*x)->flags |= TRANSACTION_CALCULATED; balance += (*x)->amount; break; -- cgit v1.2.3