frappe / books

Free Accounting Software
https://frappe.io/books
GNU Affero General Public License v3.0
2.68k stars 614 forks source link

Various bug fixes #780

Closed mildred closed 6 months ago

mildred commented 7 months ago

[AccountReport] Fix date calculation

fyo.getValue(*, 'fiscalYear{Start,End}') returns a javascript Date object that encodes the filcal year as local time (01-01 and 12-31 at midnight). This date must not be converted to UTC else east timezones will return the day before (12-31 and 12-30). Use locale time values instead.

When computing the monthly/quaterly/half yearly time periods, correct the dates in the particular case where the last day of the month is selected as reference date (yields series 12-31 11-30 10-31 09-30 ...) instead of (12-31 11-30 10-30 09-30 ...).

[fix reports] Allow multiple root account to have the same type

In French accounting, multiple root accounts can be of the same type, ensure that reports take all accounts and not only the first one.