On 01/05/2017 01:30 AM, Kumar Appaiah wrote:
> On Thursday, January 5, 2017 at 2:04:35 AM UTC+5:30, John Wiegley wrote:
>
>     >>>>> "KA" == Kumar Appaiah <[email protected]
>     <javascript:>> writes:
>
>     KA> When I display the lots of commodities in my account, I get
>     something like
>     AK> this:
>
>     AK> # ledger bal --lots "Account" -f myfile.dat -S date -y "%Y-%m-%d"
>
>     AK> This is sorted in price. However, it would be much more useful
>     if I could
>     AK> sort it in terms of date for further processing in a script,
>     since I need
>     AK> FIFO lot details. Is there a way to get date sorted lot
>     outputs directly
>     AK> from ledger?
>
>     Hi Kumar,
>
>     I've just pushed a fix to the 'next' branch which allows you to say:
>
>       ledger bal --lots "Account" -f myfile.dat \
>           -S 'lot_date(total) || date' -y "%Y-%m-%d"
>
>     It was an oversight that sort expressions did not have access to
>     the current
>     reporting scope. Now you can sort on the lot date of the total, or
>     the date if
>     no lot date exists.
>
>
> Dear John,
>
> Thanks for adding this feature.

Was documentation added for this feature?

These are the sort of things that are sorely underdocumented about ledger.

-- 

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