From 90d5ef83b60c8ba6d4b8971d82e3d2ec4bf1d0b6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 2 Jun 2010 06:12:14 -0400 Subject: Don't gen posting with same cost, amount commodity --- src/generate.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/generate.h') 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); -- cgit v1.2.3