diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-17 07:33:36 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:35:36 -0400 |
commit | 0f2cad4cab7ef99e1ad33be34ea813213da7288d (patch) | |
tree | 0dbd64dfdb1022d811d2dfdc5f3693f5faafafb8 /amount.h | |
parent | 2e3082e734362fb934ff8f308fe9fd9f85c35032 (diff) | |
download | fork-ledger-0f2cad4cab7ef99e1ad33be34ea813213da7288d.tar.gz fork-ledger-0f2cad4cab7ef99e1ad33be34ea813213da7288d.tar.bz2 fork-ledger-0f2cad4cab7ef99e1ad33be34ea813213da7288d.zip |
Got most of the commodity tests working, save multiplication and division.
Diffstat (limited to 'amount.h')
-rw-r--r-- | amount.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -107,6 +107,12 @@ class amount_t _release(); } + amount_t number() const { + amount_t temp(*this); + temp.clear_commodity(); + return temp; + } + bool has_commodity() const; commodity_t& commodity() const; void set_commodity(commodity_t& comm) { |