On Wednesday, May 4, 2016 at 8:12:50 PM UTC+2, John Wiegley wrote:
>
> >>>>> Ben Finney <ben+l...@benfinney.id.au <javascript:>> writes: 
>
> > 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.

Reply via email to