Re: ledger

2020-10-17 Thread John Wiegley
> "EL" == Ed Laux  writes:

EL> It will put entries for that day in amount order.

When you say "it will put", can you tell me which command you're running? And
if you have a ~/.ledgerrc with anything in it?

John

-- 

--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/m2mu0kfjkd.fsf%40newartisans.com.


Re: ledger

2020-10-17 Thread Ed Laux
It never posts entries in the order I post.  If on Monday morning I post
$150, then later I post $299 and later $10,It will put entries for that
day in amount order.1st $10 then $150 then $299.   It's not earth
shattering but wish it would leave entries in order I post.

Ed

On Fri, Oct 16, 2020 at 3:44 PM John Wiegley  wrote:

> > "EL" == Ed Laux  writes:
>
> EL> If I post say 10 transactions of various amounts on a certain day -
> how do
> EL> I get the system to stop putting the transactions in amount order? I
> want
> EL> to keep them in the order as I enter them.
>
> What is amount order? The 'register' and 'print' commands in C++Ledger
> always
> outputs postings in the order you entered them.
>
> John
>

-- 

--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CAMhpa_MLO14YF15qGCzSWADztLATmAVTvw8kJSt4_f9b5MzMAA%40mail.gmail.com.


Re: Custom format to remove the currency

2020-10-17 Thread John Wiegley
> "JD" == Jimi Damon  writes:

JD> Thanks for that...also you solved a problem for me with roundto. Why is
JD> roundto() so sensitive to spaces in it's argument ?

JD> This works

JD> roundto(amount, 2 )

JD> but this doesn't ??

JD> roundto(amount,2)

Well, comma might be a European decimal separator, and "amount" might be the
name of a commodity, and you might be specifying 0,2 of that commodity very
lazily.

I agree this should be an error, and welcome a bug report, but that's what
Ledger is thinking in this case.

John

-- 

--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/m2h7qso1wf.fsf%40newartisans.com.


Re: Custom format to remove the currency

2020-10-17 Thread Jimi Damon
Thanks for that...also you solved a problem for me with roundto.

Why is roundto() so sensitive to spaces in it's argument ?

This works

roundto(amount, 2 )

but this doesn't ??

roundto(amount,2)



On Sat, Oct 17, 2020 at 5:48 AM Jasel17212 
wrote:

> The 'clear_commodity' function should do this for you.
>
> echo -ne "2019/12/01 * Mortgage\n Expenses:Mortgage \$1.00\n
> Assets:Checking\n" | ledger -f - reg Expenses:Mortgage --format
> "%(clear_commodity(roundto(amount, 2)))\n"
>
>
> On Sunday, October 11, 2020 at 2:08:52 PM UTC-5 jda...@gmail.com wrote:
>
>> Hi,
>>
>> I am just looking for the correct command to remove the currency from a
>> ledger custom format.
>>
>> I have some other scripts that process the results and they I'd prefer to
>> not have to pipe the output of ledger into something just to remove "$"
>> from the report.
>>
>> Is there a  way to get the %amount in a format without the currency
>> attached to it ?
>>
>> echo -ne "2019/12/01 * Mortgage\nExpenses:Mortgage  \$1.00\n
>>Assets:Checking\n" | ledger -f - reg Expenses:Mortgage --format
>> "%(roundto(amount, 2))\n"
>>
>>
>> I'd love to get
>> 1.00
>>
>> Instead of
>> $1.00
>>
>>
>>
>>
>> --
>
> ---
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ledger-cli/6edc4ca9-e77b-4468-899c-bdb898077ec6n%40googlegroups.com
> 
> .
>

-- 

--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CAHkuPsv5z0Eph6ofJNJ9nvP8UKn9_FizS9UN%2BZfingP6nFfy-A%40mail.gmail.com.


Re: Custom format to remove the currency

2020-10-17 Thread Jasel17212
The 'clear_commodity' function should do this for you.

echo -ne "2019/12/01 * Mortgage\n Expenses:Mortgage \$1.00\n 
Assets:Checking\n" | ledger -f - reg Expenses:Mortgage --format 
"%(clear_commodity(roundto(amount, 2)))\n"


On Sunday, October 11, 2020 at 2:08:52 PM UTC-5 jda...@gmail.com wrote:

> Hi,
>
> I am just looking for the correct command to remove the currency from a 
> ledger custom format.
>
> I have some other scripts that process the results and they I'd prefer to 
> not have to pipe the output of ledger into something just to remove "$" 
> from the report.
>
> Is there a  way to get the %amount in a format without the currency 
> attached to it ? 
>
> echo -ne "2019/12/01 * Mortgage\nExpenses:Mortgage  \$1.00\n   
>  Assets:Checking\n" | ledger -f - reg Expenses:Mortgage --format 
> "%(roundto(amount, 2))\n"
>
>
> I'd love to get 
> 1.00
>
> Instead of 
> $1.00
>
>
>
>
>

-- 

--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/6edc4ca9-e77b-4468-899c-bdb898077ec6n%40googlegroups.com.