diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-27 16:17:27 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-27 16:17:27 -0400 |
commit | aff9052baf50b3ff188dafbb5de1709a9cf89078 (patch) | |
tree | a63f87e6250b8130d49531e9cb723075f7abac77 /src/generate.cc | |
parent | e6aae5a096d662a0bc4162df9055cebfda7c0909 (diff) | |
download | fork-ledger-aff9052baf50b3ff188dafbb5de1709a9cf89078.tar.gz fork-ledger-aff9052baf50b3ff188dafbb5de1709a9cf89078.tar.bz2 fork-ledger-aff9052baf50b3ff188dafbb5de1709a9cf89078.zip |
The generate report now generates lot details
Diffstat (limited to 'src/generate.cc')
-rw-r--r-- | src/generate.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/generate.cc b/src/generate.cc index cb4b5f43..28c2aad7 100644 --- a/src/generate.cc +++ b/src/generate.cc @@ -200,26 +200,26 @@ string generate_posts_iterator::generate_amount(std::ostream& out, generate_commodity(buf); } -#if 0 // Possibly generate an annotized commodity, but make it rarer if (! no_negative && three_gen() == 1) { - if (truth_gen()) { - out << " {"; - generate_amount(out, value_t(), true); - out << '}'; + if (three_gen() == 1) { + buf << " {"; + generate_amount(buf, value_t(), true); + buf << '}'; } - if (truth_gen()) { - out << " ["; - generate_date(out); - out << ']'; +#if 0 + if (six_gen() == 1) { + buf << " ["; + generate_date(buf); + buf << ']'; } - if (truth_gen()) { - out << " ("; - generate_string(out, strlen_gen()); - out << ')'; +#endif + if (six_gen() == 1) { + buf << " ("; + generate_string(buf, six_gen()); + buf << ')'; } } -#endif if (! not_this_amount.is_null() && value_t(buf.str()).as_amount().commodity() == |