Re: Suggestion: make "include" order files before importing

2017-10-03 Thread John Wiegley
> "JMF" == Jan Maurits Faber  writes:

JMF> Obviously it would be nicer if ledger sorted the files before including
JMF> them, so I could use the first version. I can't seem to find a working
JMF> bug tracker anywhere to add this suggestion, is the project still being
JMF> maintained? -j

I'd call it a glacial form of maintenance, but certainly not abandoned.

What you suggest is indeed a bug that should/will be fixed.

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.
For more options, visit https://groups.google.com/d/optout.


Re: Forecast balance

2017-10-03 Thread Jostein Berntsen
On 03.10.17,11:46, Artyom Boyko wrote:
> Hi!
> 
> I have example journal like this
> 
> ~ Monthly
>   Expenses:Food$50.00
>   Assets
> 
> 
> ~ Monthly
> Assets $300
> Income:Salary
> 
> 
> 2009/11/01 Sample
>   Expenses:Food:Coffee $1.00
>   Assets
> 
> 
> I'm trying to forecast my balance in the future. When I'm doing command 
> like this
> 
> ledger -f example.dat --forecast "d<[2018/05/01]" register
> 
> 
> Everything works perfectly. I can see future transactions. But If I'm doing 
> this:
> 
> ledger -f example.dat --forecast "d<[2018/05/01]" balance
> 
> 
>$14999.00  Assets
> $3001.00  Expenses:Food
>$1.00Coffee
>   $-18000.00  Income:Salary
> 
>0
> 
> 
> And no matter what I do, I can't change the date of my future balance.
> 

>From the ledger manual it says this on using forecasting with balance:

2.9.2 Forecasting

Sometimes it's useful to know what your finances will look like in the 
future, such as determining when an account will reach zero. Ledger 
makes this easy to do, using the same period entries as are used for 
budgeting. An example forecast report can be generated with:

 ledger --forecast "T>{\$-500.00}" register ^assets ^liabilities

This report continues outputting transactions until the running 
total is greater than $-500.00. A final transaction is always 
output, to show you what the total afterwards would be.

Forecasting can also be used with the balance report, but by date 
only, and not against the running total:

ledger --forecast "d<[2010]" bal ^assets ^liabilities


Jostein

-- 

--- 
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: Forecast balance

2017-10-03 Thread Jostein Berntsen
On 03.10.17,11:46, Artyom Boyko wrote:
> Hi!
> 
> I have example journal like this
> 
> ~ Monthly
>   Expenses:Food$50.00
>   Assets
> 
> 
> ~ Monthly
> Assets $300
> Income:Salary
> 
> 
> 2009/11/01 Sample
>   Expenses:Food:Coffee $1.00
>   Assets
> 
> 
> I'm trying to forecast my balance in the future. When I'm doing command 
> like this
> 
> ledger -f example.dat --forecast "d<[2018/05/01]" register
> 
> 
> Everything works perfectly. I can see future transactions. But If I'm doing 
> this:
> 
> ledger -f example.dat --forecast "d<[2018/05/01]" balance
> 
> 
>$14999.00  Assets
> $3001.00  Expenses:Food
>$1.00Coffee
>   $-18000.00  Income:Salary
> 
>0
> 
> 
> And no matter what I do, I can't change the date of my future balance.
> 

>From the ledger manual it says this on using forecasting with balance:

2.9.2 Forecasting

Sometimes it's useful to know what your finances will look like in the 
future, such as determining when an account will reach zero. Ledger 
makes this easy to do, using the same period entries as are used for 
budgeting. An example forecast report can be generated with:

 ledger --forecast "T>{\$-500.00}" register ^assets ^liabilities

This report continues outputting transactions until the running 
total is greater than $-500.00. A final transaction is always 
output, to show you what the total afterwards would be.

Forecasting can also be used with the balance report, but by date 
only, and not against the running total:

ledger --forecast "d<[2010]" bal ^assets ^liabilities


Jostein

-- 

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


Forecast balance

2017-10-03 Thread Artyom Boyko
Hi!

I have example journal like this

~ Monthly
  Expenses:Food$50.00
  Assets


~ Monthly
Assets $300
Income:Salary


2009/11/01 Sample
  Expenses:Food:Coffee $1.00
  Assets


I'm trying to forecast my balance in the future. When I'm doing command 
like this

ledger -f example.dat --forecast "d<[2018/05/01]" register


Everything works perfectly. I can see future transactions. But If I'm doing 
this:

ledger -f example.dat --forecast "d<[2018/05/01]" balance


   $14999.00  Assets
$3001.00  Expenses:Food
   $1.00Coffee
  $-18000.00  Income:Salary

   0


And no matter what I do, I can't change the date of my future balance.

-- 

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