Re: Forecasting beginning in the future

2020-09-13 Thread Alan Bram
Here's a demo of what I mean. Reading from "sample.dat" produces no output;
compare to "another.dat." (Data files attached.)

% ledger --version
Ledger 3.2.1-20200518, the command-line accounting tool

Copyright (c) 2003-2019, John Wiegley.  All rights reserved.

This program is made available under the terms of the BSD Public License.
See LICENSE file included with the distribution for details and disclaimer.
% ledger -f sample.dat --forecast "d<[2022]" reg cash
% ledger -f another.dat --forecast "d<[2022]" reg cash
2020/10/01 Forecast transactionAssets:Cash
   $-500.00 $-500.00
2020/11/01 Forecast transactionAssets:Cash
   $-500.00$-1000.00
2020/12/01 Forecast transactionAssets:Cash
   $-500.00$-1500.00
2021/01/01 Forecast transactionAssets:Cash
   $-500.00$-2000.00
2021/02/01 Forecast transactionAssets:Cash
   $-500.00$-2500.00
2021/03/01 Forecast transactionAssets:Cash
   $-500.00$-3000.00
2021/04/01 Forecast transactionAssets:Cash
   $-500.00$-3500.00
%

On Sun, Sep 13, 2020 at 5:53 PM John Wiegley  wrote:

> > "A" == Alan   writes:
>
> A> Is it correct to glean from this that it doesn't work to give a "from"
> date
> A> in a periodic transaction? I was trying to do so, but I was not able to
> A> make it work.
>
> I would definitely expect periodic transactions to accept date ranges.
>
> https://www.ledger-cli.org/3.0/doc/ledger3.html#Period-Expressions
>
> 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/CACHqOS-GF3TWi8_6LefO0sQqK_39BpWxgqf%3D1mTambzmfcGc2Q%40mail.gmail.com.


sample.dat
Description: Binary data


another.dat
Description: Binary data


Re: Forecasting beginning in the future

2020-09-13 Thread John Wiegley
> "A" == Alan   writes:

A> Is it correct to glean from this that it doesn't work to give a "from" date
A> in a periodic transaction? I was trying to do so, but I was not able to
A> make it work.

I would definitely expect periodic transactions to accept date ranges.

https://www.ledger-cli.org/3.0/doc/ledger3.html#Period-Expressions

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/m28sdd2n7u.fsf%40newartisans.com.


Re: Forecasting beginning in the future

2020-09-13 Thread Alan
Is it correct to glean from this that it doesn't work to give a "from" date 
in a periodic transaction? I was trying to do so, but I was not able to 
make it work.

On Tuesday, December 15, 2015 at 3:50:35 PM UTC-8 John Wiegley wrote:

> > Phil Gee  writes:
>
> > As far as I understand --forecast, I should see the expected development 
> of
> > my checkings account when I send the command ledger -f
> > Budget2016_ledger.txt - -forecast "d<[2017]" reg assets:checking. 
> However,
> > if I do that, I only get
>
> > 16-Dec-01 Forecast transaction Assets:Checking €1460.00 €22711.00
>
> > So, all the Expenses from the second, third, sixth and seventh paragraph 
> are
> > neglected. How can I fix this?
>
> You'll need to include expenses in the report, for them to be factored into
> the forecast.
>
> -- 
> John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
> http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
>

-- 

--- 
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/1594d1b2-a3cd-4e1d-8eda-0883289dd842n%40googlegroups.com.