Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various bug fixes #780

Merged
merged 2 commits into from Dec 21, 2023
Merged

Various bug fixes #780

merged 2 commits into from Dec 21, 2023

Conversation

mildred
Copy link
Contributor

@mildred mildred commented Dec 1, 2023

[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.

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 ...).
In French accounting, multiple root accounts can be of the same type,
ensure that reports take all accounts and not only the first one.
Copy link
Member

@18alantom 18alantom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it locally, looks good to go 👍

@mildred mildred merged commit 5e4873c into frappe:master Dec 21, 2023
4 checks passed
@mildred mildred deleted the bug-fixes branch December 21, 2023 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants