This works quite well for me. Thanks!

On Monday, January 22, 2018 at 7:37:56 AM UTC-8, Ismaël Bouya wrote:
>
> Hello, 
> Being agnostic to currencies is not a good reason to prevent you from 
> having default values :) 
>
> To answer the initial question, you could add: 
> ------✂-------- 
> commodity EUR 
>   default 
> ------✂-------- 
> at the top of your ledger file, and thus any report with no commodity 
> will have EUR as commodity (chose your value of EUR of course). This 
> works for ledger convert in particular 
>
>
> (Mon, Jan 22, 2018 at 03:25:13PM +0000) Dániel Fancsali : 
> > Hello, 
> > 
> > I think there's no straightforward way of doing that. Ledger is rather 
> > agnostic of currencies anyway. It'll happily handle as many as you wish, 
> > unlike others similar tools, where you need to have an internal/default 
> > currency. 
> > 
> > So I myself just add another rule to the sed script that I need to 
> process 
> > my banks rather odd looking CSV files anyway. 
> > 
> > Hope that helps. 
> > 
> > Regards, 
> > Dan 
> > 
> > On Sat, 20 Jan 2018 at 19:13 acobster <[email protected] <javascript:>> 
> wrote: 
> > 
> > > Hi legderers, 
> > > 
> > > When I run `ledger convert` on CSV files with no currency symbol in 
> the 
> > > amounts, it outputs the entries without currency symbols as well. I'd 
> like 
> > > the entries to default to USD. I can of course run an intermediate 
> script 
> > > to add these to the CSV before converting, but it's annoying to do 
> this 
> > > every time. Is there an option for the convert command to do this? 
> > > Alternatively, is there a global configuration/option to tell ledger 
> to 
> > > interpret amounts w/o currencies as USD? 
> > > 
> > > Thanks, 
> > > Coby 
> > > 
> > > -- 
> > > 
> > > --- 
> > > 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] <javascript:>. 
> > > For more options, visit https://groups.google.com/d/optout. 
> > > 
> > 
> > -- 
> > 
> > --- 
> > 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] <javascript:>. 
> > For more options, visit https://groups.google.com/d/optout. 
>
> >    Hello, 
> >    I think there's no straightforward way of doing that. Ledger is 
> rather 
> >    agnostic of currencies anyway. It'll happily handle as many as you 
> wish, 
> >    unlike others similar tools, where you need to have an 
> internal/default 
> >    currency. 
> >    So I myself just add another rule to the sed script that I need to 
> process 
> >    my banks rather odd looking CSV files anyway. 
> >    Hope that helps. 
> >    Regards, 
> >    Dan 
> >    On Sat, 20 Jan 2018 at 19:13 acobster <[1][email protected] 
> <javascript:>> wrote: 
> > 
> >      Hi legderers, 
> > 
> >      When I run `ledger convert` on CSV files with no currency symbol in 
> the 
> >      amounts, it outputs the entries without currency symbols as well. 
> I'd 
> >      like the entries to default to USD. I can of course run an 
> intermediate 
> >      script to add these to the CSV before converting, but it's annoying 
> to 
> >      do this every time. Is there an option for the convert command to 
> do 
> >      this? Alternatively, is there a global configuration/option to tell 
> >      ledger to interpret amounts w/o currencies as USD? 
> > 
> >      Thanks, 
> >      Coby 
> > 
> >      -- 
> > 
> >      --- 
> >      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 [2][email protected] <javascript:>. 
> >      For more options, visit [3]https://groups.google.com/d/optout. 
> > 
> >    -- 
> > 
> >    --- 
> >    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 [4][email protected] <javascript:>. 
> >    For more options, visit [5]https://groups.google.com/d/optout. 
> > 
> > References 
> > 
> >    Visible links 
> >    1. mailto:[email protected] <javascript:> 
> >    2. mailto:[email protected] <javascript:> 
> >    3. https://groups.google.com/d/optout 
> >    4. mailto:[email protected] <javascript:> 
> >    5. https://groups.google.com/d/optout 
>
>
> -- 
> Ismael 
>

-- 

--- 
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.

Reply via email to