Closed jbb04 closed 3 years ago
@nicmendoza can you take a look at this? If not I'll try to get to this later in the week. The problem is that our current logic for fiscal_month
doesn't work properly when the fiscal calendar starts on any day other than the first day of the month.
Sorry @adamjstewart, just seeing this. I can probably take a look Monday or Tuesday next week.
Thanks! That would be great. It's almost the end of the semester for me and I'm swamped with final projects/presentations/exams.
@nicmendoza did you get a chance to look at this?
Ping @nicmendoza, if you can't look at this I'll try to take a look next week.
fiscalyear.setup_fiscal_calendar('previous', 12, 29)
For the record, I wouldn't consider this a valid fiscal year since not all months have a 29th day. Or rather, it can work as a fiscal day as long as you don't care about fiscal months.
But the originally reported bug occurs regardless of which day is used, so I'll still try to fix that.
You are correct that every month doesn't have a 29th day. The actual application in the case where I discovered this is a fiscal calendar defined by the end date. I have a situation where an organization defines it's fiscal month end as the 28th of every month.
Fiscal Month offset does not appear to match fiscal periods