imp: journal: ignore payee subdirectives

This commit is contained in:
Simon Michael 2022-12-21 22:09:15 -10:00
parent bf6a2a7ccf
commit 826a7cfb2a
3 changed files with 10 additions and 0 deletions

View File

@ -569,6 +569,7 @@ payeedirectivep = do
lift skipNonNewlineSpaces1
payee <- lift $ T.strip <$> noncommenttext1p
(comment, tags) <- lift transactioncommentp
skipMany indentedlinep
addPayeeDeclaration (payee, comment, tags)
return ()

View File

@ -2309,6 +2309,8 @@ Eg:
payee Whole Foods
```
Any indented subdirectives are currently ignored.
## Periodic transactions
Periodic transaction rules describe transactions that recur.

View File

@ -0,0 +1,7 @@
# 1. payee ignores subdirectives
<
payee KFC
alias KENTUCKY FRIED CHICKEN
uuid 1234
$ hledger -f - payees
KFC