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(invoices): Fix boundaries when in advance anniversary #1840

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

vincent-pochet
Copy link
Collaborator

@vincent-pochet vincent-pochet commented Apr 2, 2024

Context

An issue have been identified when a subscription is billed in advance on a monthly basis if the subscription starts on a 30 and the billing month is shorter than the subscription month

Subscription_at = 30th of January, billed on an anniversary basis
Plan: Monthly, billed in advance

On the billing day of February 29th, the following boundaries were returned:

  • From datetime: 2024-01-30 00:00:00.000000000
  • To datetime: 2024-02-28T59:59.999999000 UTC +00:00

The expected boundaries are:

  • From datetime: 2024-02-29 00:00:00.000000000
  • To datetime: 2024-03-29T59:59.999999000 UTC +00:00

Description

This PR ensure that the boundaries are correct

Copy link
Collaborator

@rsempe rsempe left a comment

Choose a reason for hiding this comment

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

👏

@rsempe rsempe merged commit b576806 into main Apr 3, 2024
7 checks passed
@rsempe rsempe deleted the fix-boundaries branch April 3, 2024 09:35
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