TheAxelander / OpenBudgeteer

OpenBudgeteer is a budgeting app based on the Bucket Budgeting Principle
https://theaxelander.github.io
MIT License
745 stars 42 forks source link

Store correct date of bucket movement #244

Closed Lucaber closed 2 months ago

Lucaber commented 2 months ago

fixes #240

TheAxelander commented 2 months ago

This would not work if you make a movement like for the previous month

Lucaber commented 2 months ago

Oh i didn't realize that this is possible

TheAxelander commented 2 months ago

I think the best way would be to add a month check. So if the current YearMonth is in the past, keep the old behavior (or use the last day of that month which would make more sense) otherwise use current date.

What do you think?

Lucaber commented 2 months ago

Yes, I`m now storing the last day of the month for previous or the first day for months in the future.

TheAxelander commented 2 months ago

Cool, I will have a look on it and do some testings in case of any further side effects.

TheAxelander commented 2 months ago

Testing looking good :+1: