diff options
author | John Wiegley <johnw@newartisans.com> | 2020-03-27 18:20:44 -0700 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2020-03-27 18:20:44 -0700 |
commit | ab4198a50f7fe476d9d1c7d56fb09669e7839bf5 (patch) | |
tree | 6953af478577dbc7408583e066b5f0c139ebdff9 /src/balance.h | |
parent | a6a58af28f30ee81f86604b56740d98af8b75c38 (diff) | |
download | fork-ledger-ab4198a50f7fe476d9d1c7d56fb09669e7839bf5.tar.gz fork-ledger-ab4198a50f7fe476d9d1c7d56fb09669e7839bf5.tar.bz2 fork-ledger-ab4198a50f7fe476d9d1c7d56fb09669e7839bf5.zip |
Look up annotated amounts within balances by their displayed name
Diffstat (limited to 'src/balance.h')
-rw-r--r-- | src/balance.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/balance.h b/src/balance.h index 19b6bd84..6c1475ac 100644 --- a/src/balance.h +++ b/src/balance.h @@ -506,6 +506,9 @@ public: optional<amount_t> commodity_amount(const optional<const commodity_t&>& commodity = none) const; + amounts_map::iterator find_by_name(const commodity_t& comm); + amounts_map::const_iterator find_by_name(const commodity_t& comm) const; + balance_t number() const { balance_t temp; foreach (const amounts_map::value_type& pair, amounts) |