diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-02 06:12:14 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-02 06:13:40 -0400 |
commit | 90d5ef83b60c8ba6d4b8971d82e3d2ec4bf1d0b6 (patch) | |
tree | 2e3876b24c95080db448e8c312e56114321c8248 /src/generate.h | |
parent | f68b4d0f0fc9232a60e384de72743643ace0ceb7 (diff) | |
download | fork-ledger-90d5ef83b60c8ba6d4b8971d82e3d2ec4bf1d0b6.tar.gz fork-ledger-90d5ef83b60c8ba6d4b8971d82e3d2ec4bf1d0b6.tar.bz2 fork-ledger-90d5ef83b60c8ba6d4b8971d82e3d2ec4bf1d0b6.zip |
Don't gen posting with same cost, amount commodity
Diffstat (limited to 'src/generate.h')
-rw-r--r-- | src/generate.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/generate.h b/src/generate.h index 3d9965a5..f0f58064 100644 --- a/src/generate.h +++ b/src/generate.h @@ -110,10 +110,11 @@ public: protected: void generate_string(std::ostream& out, int len, bool only_alpha = false); bool generate_account(std::ostream& out, bool no_virtual = false); - void generate_commodity(std::ostream& out); + void generate_commodity(std::ostream& out, const string& exclude = ""); string generate_amount(std::ostream& out, - value_t not_this_amount = NULL_VALUE, - bool no_negative = false); + value_t not_this_amount = NULL_VALUE, + bool no_negative = false, + const string& exclude = ""); bool generate_post(std::ostream& out, bool no_amount = false); void generate_cost(std::ostream& out, value_t amount); void generate_date(std::ostream& out); |