Automated transactions now use report query syntax
This returns their behavior back very close to what 2.x accepts.
This commit is contained in:
parent
a779751fc7
commit
39532bdf35
5 changed files with 7 additions and 6 deletions
|
|
@ -36,6 +36,7 @@
|
||||||
#include "post.h"
|
#include "post.h"
|
||||||
#include "account.h"
|
#include "account.h"
|
||||||
#include "option.h"
|
#include "option.h"
|
||||||
|
#include "query.h"
|
||||||
#include "pstream.h"
|
#include "pstream.h"
|
||||||
#include "pool.h"
|
#include "pool.h"
|
||||||
#include "session.h"
|
#include "session.h"
|
||||||
|
|
@ -508,8 +509,8 @@ void instance_t::automated_xact_directive(char * line)
|
||||||
}
|
}
|
||||||
|
|
||||||
std::auto_ptr<auto_xact_t> ae
|
std::auto_ptr<auto_xact_t> ae
|
||||||
(new auto_xact_t(predicate_t(skip_ws(line + 1),
|
(new auto_xact_t(query_t(string(skip_ws(line + 1)),
|
||||||
keep_details_t(true, true, true))));
|
keep_details_t(true, true, true))));
|
||||||
|
|
||||||
reveal_context = false;
|
reveal_context = false;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
print --actual
|
print --actual
|
||||||
<<<
|
<<<
|
||||||
= account =~ /Books/
|
= Books
|
||||||
Expenses:Taxes 0.05
|
Expenses:Taxes 0.05
|
||||||
Assets:Checking -0.05
|
Assets:Checking -0.05
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
bal assets
|
bal assets
|
||||||
<<<
|
<<<
|
||||||
= account =~ /^Income/
|
= /^Income/
|
||||||
(Liabilities:Tithe) 0.12
|
(Liabilities:Tithe) 0.12
|
||||||
|
|
||||||
~ Monthly
|
~ Monthly
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ reg --color --force-color
|
||||||
<<<
|
<<<
|
||||||
N $
|
N $
|
||||||
|
|
||||||
= account =~ /^Expenses:Books/
|
= /^Expenses:Books/
|
||||||
(Liabilities:Taxes) -0.10
|
(Liabilities:Taxes) -0.10
|
||||||
|
|
||||||
~ Monthly
|
~ Monthly
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ entry 2009/03/15 book 10
|
||||||
<<<
|
<<<
|
||||||
N $
|
N $
|
||||||
|
|
||||||
= account =~ /^Expenses:Books/
|
= /^Expenses:Books/
|
||||||
(Liabilities:Taxes) -0.10
|
(Liabilities:Taxes) -0.10
|
||||||
|
|
||||||
~ Monthly
|
~ Monthly
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue