mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
Tests to show bug in multiple file assigments in CSV parsing
This commit is contained in:
parent
ef9d1991cf
commit
550f41ee48
@ -35,3 +35,12 @@
|
||||
# >>>2 /using conversion rules file.*t.rules/
|
||||
# >>>=0
|
||||
|
||||
# 4. handle conditions assigning multiple fields
|
||||
rm -rf t.rules$$; printf 'fields date, description, amount\ndate-format %%d/%%Y/%%m\ncurrency $\naccount1 assets:myacct\nif Flubber\n account2 acct\n comment cmt' >t.rules$$; echo '10/2009/09,Flubber Co,50' | hledgerdev -f- print --rules-file t.rules$$; rm -rf t.rules$$
|
||||
>>>
|
||||
2009/09/10 Flubber Co ;cmt
|
||||
acct $-50
|
||||
assets:myacct $50
|
||||
|
||||
>>>2 /using conversion rules file.*t.rules/
|
||||
>>>=0
|
||||
|
Loading…
Reference in New Issue
Block a user