diff options
author | John Wiegley <johnw@newartisans.com> | 2004-06-21 05:37:40 -0400 |
---|---|---|
committer | johnw <johnw@newartisans.com> | 2004-06-21 05:37:40 -0400 |
commit | f077b655d01364275c1f8944aee0a0ed2d530245 (patch) | |
tree | aff89cb52a6c41e135afb5cf6584ec255f05d5d5 /ledger.h | |
parent | c892e8c7ad0aaf6c47ff6e9075149a76188ae670 (diff) | |
download | fork-ledger-f077b655d01364275c1f8944aee0a0ed2d530245.tar.gz fork-ledger-f077b655d01364275c1f8944aee0a0ed2d530245.tar.bz2 fork-ledger-f077b655d01364275c1f8944aee0a0ed2d530245.zip |
pricing fixes, added price command
Diffstat (limited to 'ledger.h')
-rw-r--r-- | ledger.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -64,7 +64,8 @@ class commodity ~commodity(); void set_price(amount * price, std::time_t * when = NULL); - amount * price(std::time_t * when = NULL, bool download = false) const; + amount * price(std::time_t * when = NULL, + bool use_history = false, bool download = false) const; }; typedef std::map<const std::string, commodity *> commodities_map; @@ -84,7 +85,8 @@ class amount virtual amount * value(const amount * pr = NULL) const = 0; virtual void set_value(const amount * pr) = 0; virtual amount * street(std::time_t * when = NULL, - bool get_quotes = false) const = 0; + bool use_history = false, + bool download = false) const = 0; virtual bool has_price() const = 0; virtual amount * per_item_price() const = 0; |