Friday, May 31, 2024
2 changes · saas-17.3
Resolved issues and error corrections
Financial report date filters now calculate previous months correctly when the current date falls on the 31st. This prevents reports from staying on the wrong month and helps users get the expected reporting period.
Original PR description
The date filters weren't working on the last day of certain months (31st). For example, if we are the 31st of may, and we try to get back one month, We would expect to be the 30th of april. Instead, what the code was doing was strictly removing one month to the date, so we will be the 31st of april and since that date doesn't exist, the value that was returned was still 31st of may. To fix that, we now use luxon to make the date calculation.
The Malaysia reporting module now correctly requires the accounting reports component it depends on. This prevents setup or visibility issues when Accounting or Invoicing features are enabled.
Original PR description
l10N_my_reports does not depend on account_reports currently while it should. It was made visible with the changes with Invoicing/Accounting modules. runbot-66373