imp: journal: ignore payee subdirectives
This commit is contained in:
parent
bf6a2a7ccf
commit
826a7cfb2a
@ -569,6 +569,7 @@ payeedirectivep = do
|
|||||||
lift skipNonNewlineSpaces1
|
lift skipNonNewlineSpaces1
|
||||||
payee <- lift $ T.strip <$> noncommenttext1p
|
payee <- lift $ T.strip <$> noncommenttext1p
|
||||||
(comment, tags) <- lift transactioncommentp
|
(comment, tags) <- lift transactioncommentp
|
||||||
|
skipMany indentedlinep
|
||||||
addPayeeDeclaration (payee, comment, tags)
|
addPayeeDeclaration (payee, comment, tags)
|
||||||
return ()
|
return ()
|
||||||
|
|
||||||
|
|||||||
@ -2309,6 +2309,8 @@ Eg:
|
|||||||
payee Whole Foods
|
payee Whole Foods
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Any indented subdirectives are currently ignored.
|
||||||
|
|
||||||
## Periodic transactions
|
## Periodic transactions
|
||||||
|
|
||||||
Periodic transaction rules describe transactions that recur.
|
Periodic transaction rules describe transactions that recur.
|
||||||
|
|||||||
7
hledger/test/journal/directive-payee.test
Normal file
7
hledger/test/journal/directive-payee.test
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# 1. payee ignores subdirectives
|
||||||
|
<
|
||||||
|
payee KFC
|
||||||
|
alias KENTUCKY FRIED CHICKEN
|
||||||
|
uuid 1234
|
||||||
|
$ hledger -f - payees
|
||||||
|
KFC
|
||||||
Loading…
Reference in New Issue
Block a user