diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-16 05:38:32 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:52 -0400 |
commit | 7c7e5c5e367778c6d54a1bb2be2db5c73db0492b (patch) | |
tree | 16ed5bde7719aa10b4d7cde25eaaf2ea64fa7f80 /src/journal.cc | |
parent | 74ecceb2ba0cb1592f570bcb52619f882c15bd27 (diff) | |
download | fork-ledger-7c7e5c5e367778c6d54a1bb2be2db5c73db0492b.tar.gz fork-ledger-7c7e5c5e367778c6d54a1bb2be2db5c73db0492b.tar.bz2 fork-ledger-7c7e5c5e367778c6d54a1bb2be2db5c73db0492b.zip |
Now using xpath_t::path_t to select nodes.
Diffstat (limited to 'src/journal.cc')
-rw-r--r-- | src/journal.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal.cc b/src/journal.cc index 2f501aff..295db452 100644 --- a/src/journal.cc +++ b/src/journal.cc @@ -153,7 +153,7 @@ bool entry_base_t::finalize() // account if one has been set. if (journal && journal->basket && transactions.size() == 1) { - assert(balance.is_type(value_t::AMOUNT)); + assert(balance.is_amount()); transaction_t * nxact = new transaction_t(journal->basket); // The amount doesn't need to be set because the code below will // balance this transaction against the other. @@ -166,7 +166,7 @@ bool entry_base_t::finalize() // determine its price by dividing the unit count into the value of // the balance. This is done for the last eligible commodity. - if (! saw_null && balance && balance.is_type(value_t::BALANCE) && + if (! saw_null && balance && balance.is_balance() && balance.as_balance().amounts.size() == 2) { transactions_list::const_iterator x = transactions.begin(); assert((*x)->amount); |