Hello! I'm looking whether I can have workaround for missing support of '--by-payee' option in hledger by having transactions that would work in both ledger and hledger.
In Gnucash I use(d) the following format for Description field for the transaction: milk, sugar, cosmetic (Spar, ČK) where 'milk, sugar, cosmetic' is list of main items bought in some place and 'Spar' denotes the name of shop (payee) while 'ČK' is abbreviation for the city where the shopping was done (naturally, there are same shops in different cities and that's why I want to record that information.) Now I see that in ledger there is option of 'Payee' meta data and the transaction can be recorded as: 2004/01/19 milk, sugar, cosmetic Expenses:Food:Groceries $ 44.00 ; Payee: "Kaufland, ČK" Assets:Checking and if I use: ledger register -f sample.dat --by-payee Food I'll get nice report sorted by payees. Now, hledger does not have support for '--by-payee', so I tried to mimic it by using 'Payee:' tag. Now, I do not know how to handle hledger's tag like Payee: "Kaufland, ČK", so I simplified it to: Payee:Kaufland, but the command: hledger register -f sample.dat "Payee:Kaufland" Food lists all the Food's transactions and not *just* the one done in "Kaufland". Another problem is that having the tag Payee:Kaufland creates the problem for ledger: ledger register -f sample.dat --by-payee Food does not list 'Kaufland' any longer since the metadata should look like: ; Payee: Kaufland with space inserted. So, in short: is there a way to mimic ledger's Payee: in hledger by using tags *and* use same ledger/journal file which would (somehow) work in both (h)ledger? Sincerely, Gour -- As the embodied soul continuously passes, in this body, from boyhood to youth to old age, the soul similarly passes into another body at death. A sober person is not bewildered by such a change. -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
