diff options
author | John Wiegley <johnw@newartisans.com> | 2008-08-04 16:24:41 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-08-04 16:24:41 -0400 |
commit | 9c9a34388a0697c4c4c4bd126ec8dd7e1244cd48 (patch) | |
tree | a06ae88d3464a2fd6c4a3e184e7973768cf0d392 /xact.cc | |
parent | 966b231f23a0c74db105784ba1291c860ced483e (diff) | |
download | fork-ledger-9c9a34388a0697c4c4c4bd126ec8dd7e1244cd48.tar.gz fork-ledger-9c9a34388a0697c4c4c4bd126ec8dd7e1244cd48.tar.bz2 fork-ledger-9c9a34388a0697c4c4c4bd126ec8dd7e1244cd48.zip |
First round of work to get the balance report working again.
Diffstat (limited to 'xact.cc')
-rw-r--r-- | xact.cc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -266,6 +266,8 @@ void xact_t::add_to_value(value_t& value) value += xdata_->value; } else if (cost || (! value.is_null() && ! value.is_realzero())) { + if (value.is_null()) + value = amount_t(); value.add(amount, cost); } else { |