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

[FIX] account_payment_term_surcharge: Correct calculation of next_surcharge_date with day_current_month #606

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

rov-adhoc
Copy link
Contributor

This fix addresses an issue when calculating next_surcharge_date for surcharges that depend on a specific day of the current month. For example, if the invoice date is 30/11 and the surcharge is set for the 13th of the month, the calculated next_surcharge_date was incorrectly set to 13/11 (a past date).

With this fix, the calculation ensures the next_surcharge_date is properly set to 13/12 (the next valid occurrence).

…charge_date with day_current_month

This fix addresses an issue when calculating `next_surcharge_date` for surcharges that depend on a specific day of the current month. For example, if the invoice date is 30/11 and the surcharge is set for the 13th of the month, the calculated `next_surcharge_date` was incorrectly set to 13/11 (a past date).

With this fix, the calculation ensures the `next_surcharge_date` is properly set to 13/12 (the next valid occurrence).
@roboadhoc
Copy link

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.

2 participants