hledger icon indicating copy to clipboard operation
hledger copied to clipboard

Make periodic txns generation not silently fail when end date is older than start date

Open v-Nyo opened this issue 7 months ago • 3 comments

I spent an embarrassing amount of time debugging my scripts because no txns where generated by this:

~ monthly from 2025-08-10 to 2025-01-10

Would be nice if it could fail loudly if the second date is older than start date. That said no idea if implementing a check for this minor thing is a good idea.

v-Nyo avatar Aug 12 '25 23:08 v-Nyo

I hear you. That sounds good for interactive use.

It's also the kind of thing that can make scripting harder; and the problem is fairly low impact, debuggable (hledger print --forecast=20250810..20250111), and feels reasonable when you discover it ?

simonmichael avatar Aug 13 '25 04:08 simonmichael

make scripting harder

Was just some feedback. No need if it makes scripting harder.

BTW thanks for your work on plaintextaccounting and hledger. Was a HUGE help, I am finally doing some bookkeeping, for over a year now :)

v-Nyo avatar Aug 13 '25 23:08 v-Nyo

That's great to hear, congrats @v-Nyo !

simonmichael avatar Aug 14 '25 06:08 simonmichael