If a transaction's total is null, return 0 instead

This commit is contained in:
John Wiegley 2009-02-19 15:51:14 -04:00
parent 3826cb1bee
commit 1c616f8626

View file

@ -171,7 +171,7 @@ namespace {
} }
value_t get_total(xact_t& xact) { value_t get_total(xact_t& xact) {
if (xact.xdata_) if (xact.xdata_ && ! xact.xdata_->total.is_null())
return xact.xdata_->total; return xact.xdata_->total;
else else
return xact.amount; return xact.amount;