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 transaction Assets:Cash $-500.00 $-500.00 2020/11/01 Forecast transaction Assets:Cash $-500.00 $-1000.00 2020/12/01 Forecast transaction Assets:Cash $-500.00 $-1500.00 2021/01/01 Forecast transaction Assets:Cash $-500.00 $-2000.00 2021/02/01 Forecast transaction Assets:Cash $-500.00 $-2500.00 2021/03/01 Forecast transaction Assets:Cash $-500.00 $-3000.00 2021/04/01 Forecast transaction Assets:Cash $-500.00 $-3500.00 % On Sun, Sep 13, 2020 at 5:53 PM John Wiegley <jwieg...@gmail.com> wrote: > >>>>> "A" == Alan <sf.fly...@gmail.com> 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