CSV: multiple files with different rulesets #387

Closed
rstacruz opened this Issue Aug 7, 2016 · 2 comments

Projects

None yet

2 participants

@rstacruz
rstacruz commented Aug 7, 2016 edited
hledger -f one.csv -f two.csv

It seems you can only have one .rules file active at a time. In this example, only two.csv.rules will work; one.csv.rules will be discarded.

@simonmichael
Owner
simonmichael commented Aug 7, 2016 edited

Working for me.. I think this must be #385 again.

$ hledger -f 385/cash.csv -f data/sample.csv print
using conversion rules file /Users/simon/src/hledger/data/sample.csv.rules
using conversion rules file /Users/simon/src/hledger/385/cash.csv.rules
2012/03/22 TRANSFER TO SAVINGS
    assets:bank:savings          10.00
    assets:bank:checking        -10.00

2012/03/23 SOMETHING ELSE
    income:unknown               -5.50
    assets:bank:checking          5.50

2016/08/06 *  Food
    Assets:Cash                   P -957
    Expenses:Variable:Misc         P 957
@rstacruz
rstacruz commented Aug 7, 2016

Ah! I'm using 0.27.1 from homebrew. Must be an outdated version!

On Sun, Aug 7, 2016, 9:50 PM Simon Michael notifications@github.com wrote:

Working for me.. I think this must be #383
#383 again.

$ hledger -f 385/cash.csv -f data/sample.csv print
using conversion rules file /Users/simon/src/hledger/data/sample.csv.rules
using conversion rules file /Users/simon/src/hledger/385/cash.csv.rules
2012/03/22 TRANSFER TO SAVINGS
assets🏦savings 10.00
assets🏦checking -10.00

2012/03/23 SOMETHING ELSE
income:unknown -5.50
assets🏦checking 5.50

2016/08/06 * Food
Assets:Cash P -957
Expenses:Variable:Misc P 957


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#387 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEikfUtpkSRoKRTHkrOMnVfhH-6O3BZks5qdeKQgaJpZM4Jecfg
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment