If a transaction's total is null, return 0 instead
This commit is contained in:
parent
3826cb1bee
commit
1c616f8626
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ namespace {
|
|||
}
|
||||
|
||||
value_t get_total(xact_t& xact) {
|
||||
if (xact.xdata_)
|
||||
if (xact.xdata_ && ! xact.xdata_->total.is_null())
|
||||
return xact.xdata_->total;
|
||||
else
|
||||
return xact.amount;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue