diff options
-rw-r--r-- | src/textual.cc | 5 | ||||
-rw-r--r-- | test/baseline/opt-actual.test | 2 | ||||
-rw-r--r-- | test/regress/5A03CFC3.test | 2 | ||||
-rw-r--r-- | test/regress/727B2DF8.test | 2 | ||||
-rw-r--r-- | test/regress/793F6BF0.test | 2 |
5 files changed, 7 insertions, 6 deletions
diff --git a/src/textual.cc b/src/textual.cc index 5a9e2165..1d0d7998 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -36,6 +36,7 @@ #include "post.h" #include "account.h" #include "option.h" +#include "query.h" #include "pstream.h" #include "pool.h" #include "session.h" @@ -508,8 +509,8 @@ void instance_t::automated_xact_directive(char * line) } std::auto_ptr<auto_xact_t> ae - (new auto_xact_t(predicate_t(skip_ws(line + 1), - keep_details_t(true, true, true)))); + (new auto_xact_t(query_t(string(skip_ws(line + 1)), + keep_details_t(true, true, true)))); reveal_context = false; diff --git a/test/baseline/opt-actual.test b/test/baseline/opt-actual.test index 1d9ddc89..8e7b432e 100644 --- a/test/baseline/opt-actual.test +++ b/test/baseline/opt-actual.test @@ -1,6 +1,6 @@ print --actual <<< -= account =~ /Books/ += Books Expenses:Taxes 0.05 Assets:Checking -0.05 diff --git a/test/regress/5A03CFC3.test b/test/regress/5A03CFC3.test index a5a12af3..440ff960 100644 --- a/test/regress/5A03CFC3.test +++ b/test/regress/5A03CFC3.test @@ -1,6 +1,6 @@ bal assets <<< -= account =~ /^Income/ += /^Income/ (Liabilities:Tithe) 0.12 ~ Monthly diff --git a/test/regress/727B2DF8.test b/test/regress/727B2DF8.test index 8c29e1ff..a13e8292 100644 --- a/test/regress/727B2DF8.test +++ b/test/regress/727B2DF8.test @@ -2,7 +2,7 @@ reg --color --force-color <<< N $ -= account =~ /^Expenses:Books/ += /^Expenses:Books/ (Liabilities:Taxes) -0.10 ~ Monthly diff --git a/test/regress/793F6BF0.test b/test/regress/793F6BF0.test index 754ddca3..059bd9b6 100644 --- a/test/regress/793F6BF0.test +++ b/test/regress/793F6BF0.test @@ -2,7 +2,7 @@ entry 2009/03/15 book 10 <<< N $ -= account =~ /^Expenses:Books/ += /^Expenses:Books/ (Liabilities:Taxes) -0.10 ~ Monthly |