mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-18 17:57:11 +03:00
;doc: journal: note quotes needed in auto posting queries (#1185)
[ci skip]
This commit is contained in:
parent
bb6e1e3ce2
commit
088e253eff
@ -1407,6 +1407,13 @@ These posting-generating rules look like normal postings, except the amount can
|
||||
- a numeric multiplier, eg `*2` (a star followed by a number N). The matched posting's amount (and total price, if any) will be multiplied by N.
|
||||
- a multiplier with a commodity symbol, eg `*$2` (a star, number N, and symbol S). The matched posting's amount will be multiplied by N, and its commodity symbol will be replaced with S.
|
||||
|
||||
A query term containing spaces must be enclosed in single or double
|
||||
quotes, as on the command line. Eg, note the quotes around the second query term below:
|
||||
```journal
|
||||
= expenses:groceries 'expenses:dining out'
|
||||
(budget:funds:dining out) *-1
|
||||
```
|
||||
|
||||
These rules have global effect - a rule appearing anywhere in your data can potentially affect any transaction, including transactions recorded above it or in another file.
|
||||
|
||||
Some examples:
|
||||
|
Loading…
Reference in New Issue
Block a user