diff options
Diffstat (limited to 'src/balance.h')
-rw-r--r-- | src/balance.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/balance.h b/src/balance.h index 15657c5e..765c46dd 100644 --- a/src/balance.h +++ b/src/balance.h @@ -367,6 +367,8 @@ public: const optional<datetime_t>& moment = none, const optional<commodity_t&>& in_terms_of = none) const; + balance_t price() const; + /** * Truth tests. An balance may be truth test in two ways: * @@ -483,7 +485,8 @@ public: void print(std::ostream& out, const int first_width = -1, const int latter_width = -1, - const bool right_justify = true) const; + const bool right_justify = true, + const bool colorize = true) const; /** * Debugging methods. There are two methods defined to help with @@ -511,8 +514,10 @@ public: bool valid() const { foreach (const amounts_map::value_type& pair, amounts) - if (! pair.second.valid()) + if (! pair.second.valid()) { + DEBUG("ledger.validate", "balance_t: ! pair.second.valid()"); return false; + } return true; } }; |