diff options
-rw-r--r-- | src/xact.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xact.cc b/src/xact.cc index 22dd1742..08089e5c 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -83,7 +83,12 @@ namespace { } value_t get_amount(xact_t& xact) { - return xact.amount; + if (xact.has_xdata() && + xact.xdata().has_flags(XACT_EXT_COMPOUND)) { + return xact.xdata().value; + } else { + return xact.amount; + } } value_t get_total(xact_t& xact) { |