diff options
-rw-r--r-- | src/filters.h | 8 | ||||
-rw-r--r-- | test/regress/market-group-by.test | 26 |
2 files changed, 30 insertions, 4 deletions
diff --git a/src/filters.h b/src/filters.h index 8b1f8d2a..9539eec9 100644 --- a/src/filters.h +++ b/src/filters.h @@ -565,9 +565,9 @@ public: last_display_total = value_t(); temps.clear(); - create_accounts(); - item_handler<post_t>::clear(); + + create_accounts(); } }; @@ -627,9 +627,9 @@ public: last_total = value_t(); temps.clear(); - create_accounts(); - item_handler<post_t>::clear(); + + create_accounts(); } }; diff --git a/test/regress/market-group-by.test b/test/regress/market-group-by.test new file mode 100644 index 00000000..a0d204aa --- /dev/null +++ b/test/regress/market-group-by.test @@ -0,0 +1,26 @@ +D 1000.00 EUR + +2008/04/15 * Paid expenses back from cie. + Expenses:Cie-Reimbursements 2000 CAD @ 1.10 EUR + Assets:Checking + +2008/04/15 * Paid expenses back from cie. + Expenses:Cie-Reimbursements 2000 USD @ 1.10 EUR + Assets:Checking + +P 2008/04/20 00:00:00 CAD 1.20 EUR +P 2008/04/20 00:00:00 USD 1.20 EUR + +test reg -V --group-by commodity +CAD +08-Apr-15 Paid expenses back .. Exp:Cie-Reimbursements 2200.00 EUR 2200.00 EUR +08-Apr-20 Commodities revalued <Revalued> 200.00 EUR 2400.00 EUR + +EUR +08-Apr-15 Paid expenses back .. Assets:Checking -2200.00 EUR -2200.00 EUR +08-Apr-15 Paid expenses back .. Assets:Checking -2200.00 EUR -4400.00 EUR + +USD +08-Apr-15 Paid expenses back .. Exp:Cie-Reimbursements 2200.00 EUR 2200.00 EUR +08-Apr-20 Commodities revalued <Revalued> 200.00 EUR 2400.00 EUR +end test |