diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-09 03:42:06 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-09 03:42:35 -0500 |
commit | 6cdb79e2a611d99fa6e13dd224a92dc8badaf2ac (patch) | |
tree | 967464fc8bda9543a108d83d3fc96ecdffb4e04c /src/amount.cc | |
parent | 2c80227339538154ad0869e746f52db805325589 (diff) | |
download | fork-ledger-6cdb79e2a611d99fa6e13dd224a92dc8badaf2ac.tar.gz fork-ledger-6cdb79e2a611d99fa6e13dd224a92dc8badaf2ac.tar.bz2 fork-ledger-6cdb79e2a611d99fa6e13dd224a92dc8badaf2ac.zip |
XML reporting now works via the "xml" command
Diffstat (limited to 'src/amount.cc')
-rw-r--r-- | src/amount.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/amount.cc b/src/amount.cc index 456ef8cf..6fb0056b 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -1125,16 +1125,16 @@ bool amount_t::valid() const return true; } -void to_xml(std::ostream& out, const amount_t& amt) +void to_xml(std::ostream& out, const amount_t& amt, bool commodity_details) { push_xml x(out, "amount"); if (amt.has_commodity()) - to_xml(out, amt.commodity()); + to_xml(out, amt.commodity(), commodity_details); { - push_xml y(out, "number"); - out << amt.number(); + push_xml y(out, "quantity"); + out << y.guard(amt.quantity_string()); } } |