imp: journal: ignore payee subdirectives
This commit is contained in:
parent
bf6a2a7ccf
commit
826a7cfb2a
@ -569,6 +569,7 @@ payeedirectivep = do
|
||||
lift skipNonNewlineSpaces1
|
||||
payee <- lift $ T.strip <$> noncommenttext1p
|
||||
(comment, tags) <- lift transactioncommentp
|
||||
skipMany indentedlinep
|
||||
addPayeeDeclaration (payee, comment, tags)
|
||||
return ()
|
||||
|
||||
|
||||
@ -2309,6 +2309,8 @@ Eg:
|
||||
payee Whole Foods
|
||||
```
|
||||
|
||||
Any indented subdirectives are currently ignored.
|
||||
|
||||
## Periodic transactions
|
||||
|
||||
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