I am following section 4.9 Archiving Previous Years from documentation.

My start file is t14.j:
$ ledger --args-only --date-format %Y-%m-%d -f t14.j stats
Time period: 1999-01-01 to 2023-10-26 (9064 days)

  Files these postings came from:
    /......./t14.j

  Unique payees:            3095
  Unique accounts:           381

  Number of postings:      40602 (4.5 per day)
  Uncleared postings:      21710

  Days since last post:        2
  Posts in last 7 days:       12
  Posts in last 30 days:      84
  Posts seen this month:      72

I am doing first step, hoping to select all entries 2022 and before:
$ ledger --args-only --date-format %Y-%m-%d -f t14.j print -e 2023-01-01 
print > fi
rst
$ ledger --args-only --date-format %Y-%m-%d -f first stats
Time period: 2004-12-30 to 2007-09-28 (1002 days)

  Files these postings came from:
    /mnt/e/Data/Invest/data/ldg-t14/first

  Unique payees:              45
  Unique accounts:             6

  Number of postings:        220 (0.22 per day)
  Uncleared postings:        111

  Days since last post:     5874
  Posts in last 7 days:        0
  Posts in last 30 days:       0
  Posts seen this month:       0

Second step, which supposed to be 2022 and 2023 returns nothing

$ ledger --args-only --date-format %Y-%m-%d -f t14.j print -b 2023 print > 
last
$ wc -c last
0 last

So:

   - the original jurnal:
   -                        Time period: 1999-01-01 to 2023-10-26 (9064 
   days)
   - the file which supposed to be  1999-01-01 to end of 2022:
   -                        Time period: 2004-12-30 to 2007-09-28 (1002 
   days)
   - and the one after 2022 is empty


Any idea why is this happening?

-- 

--- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/28206425-d724-4ff3-9919-37af17bff64en%40googlegroups.com.

Reply via email to