diff options
author | John Wiegley <johnw@newartisans.com> | 2006-03-24 16:37:26 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:31 -0400 |
commit | a5aff9eee967adb8c71ce6fc25db0458d522836e (patch) | |
tree | 1ab913955246a1ba0afd19d1f2fc776797a046d7 /value.h | |
parent | 44561c1c1d233d9432de319a71b44a3e05275d49 (diff) | |
download | fork-ledger-a5aff9eee967adb8c71ce6fc25db0458d522836e.tar.gz fork-ledger-a5aff9eee967adb8c71ce6fc25db0458d522836e.tar.bz2 fork-ledger-a5aff9eee967adb8c71ce6fc25db0458d522836e.zip |
Several fixes to lot price handling.
Diffstat (limited to 'value.h')
-rw-r--r-- | value.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -316,6 +316,14 @@ class value_t value_t& add(const amount_t& amount, const amount_t * cost = NULL); value_t value(const std::time_t moment) const; + void reduce(); + + value_t reduced() const { + value_t temp(*this); + temp.reduce(); + return temp; + } + void round(); value_t unround() const; }; |