summaryrefslogtreecommitdiff
path: root/src/entry.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-20 23:08:42 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-20 23:12:23 -0400
commitfc349389e3f074ae2ce22b93f3833f063f548a8f (patch)
treeb235bf0a9b6ca21aac1bcd56c8462f5570202723 /src/entry.cc
parent96ff798736cd06812fb7e463c14d6c356c8228e3 (diff)
downloadfork-ledger-fc349389e3f074ae2ce22b93f3833f063f548a8f.tar.gz
fork-ledger-fc349389e3f074ae2ce22b93f3833f063f548a8f.tar.bz2
fork-ledger-fc349389e3f074ae2ce22b93f3833f063f548a8f.zip
Restored the --budget option
Diffstat (limited to 'src/entry.cc')
-rw-r--r--src/entry.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/entry.cc b/src/entry.cc
index ffcd3a51..a07481f1 100644
--- a/src/entry.cc
+++ b/src/entry.cc
@@ -140,16 +140,16 @@ bool entry_base_t::finalize()
const balance_t& bal(balance.as_balance());
foreach (const balance_t::amounts_map::value_type& pair, bal.amounts) {
if (first) {
- null_xact->amount = pair.second.negate();
+ null_xact->amount = pair.second.negated();
first = false;
} else {
- add_xact(new xact_t(null_xact->account, pair.second.negate(),
+ add_xact(new xact_t(null_xact->account, pair.second.negated(),
ITEM_GENERATED));
}
}
}
else if (balance.is_amount()) {
- null_xact->amount = balance.as_amount().negate();
+ null_xact->amount = balance.as_amount().negated();
null_xact->add_flags(XACT_CALCULATED);
}
else if (! balance.is_null() && ! balance.is_realzero()) {