Re: adding commodity to a file without commodity
On Wednesday, May 4, 2016 at 8:12:50 PM UTC+2, John Wiegley wrote: > > > Ben Finneywrites: > > > I think the correct, and simplest, way to do this is to modify the > ledger > > file directly to have the commodity explicit in each amount. > > Indeed. "Uncommoditized" amounts actually have a separate meaning inside > Ledger, which may come to bite you in future, so tacking on the commodity > later for display is definitely not how it was designed to work. > > -- > John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F > http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 > I agree, but we have a file with about 2000 entries without commodities and the question is if it is possible to run a ledger command with some option and print the exact same file but this time with commodity € added to each amount. Something like: ledger print --commodityoption '€' > newfile.dat After that we would use the newfile.dat as ledger file, with all amounts in € and get rid of the original file. -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: adding commodity to a file without commodity
> Ben Finneywrites: > I think the correct, and simplest, way to do this is to modify the ledger > file directly to have the commodity explicit in each amount. Indeed. "Uncommoditized" amounts actually have a separate meaning inside Ledger, which may come to bite you in future, so tacking on the commodity later for display is definitely not how it was designed to work. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: adding commodity to a file without commodity
dimwrites: > I have a file without commodity specification > > 2016/01/03 Gas station > Expenses:Fuel 45.80 > Assets:Bank Account > > 2016/01/03 Restaurant > Expenses:Lunch 12.80 > Assets:Bank Account > > ... > > and I want to add the euro sign in front of I think the correct, and simplest, way to do this is to modify the ledger file directly to have the commodity explicit in each amount. -- \ “I bought some batteries, but they weren't included; so I had | `\to buy them again.” —Steven Wright | _o__) | Ben Finney -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
adding commodity to a file without commodity
Hello everybody, I have a file without commodity specification 2016/01/03 Gas station Expenses:Fuel 45.80 Assets:Bank Account 2016/01/03 Restaurant Expenses:Lunch 12.80 Assets:Bank Account ... and I want to add the euro sign in front of 2016/01/03 Gas station Expenses:Fuel€ 45.80 Assets:Bank Account 2016/01/03 Restaurant Expenses:Lunch€ 12.80 Assets:Bank Account Is there an easy way to do this with ledger print? There is no matching account (Expenses: can be something else too). I tried automated transactions with (€ 1 * amount) but no luck. Best regards, Dimitri -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.