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(sub-termination): update automatic credit note creation logic #1755

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

lovrocolic
Copy link
Collaborator

Context

When subscription auto-termination feature is used by setting ending_at, there is a chance that unnecessary credit note can be created. Described scenario can happen if ending_at is set on billing day and if termination job is processed before billing job on that day. In that case, since invoice has not been created, we should not issue a credit note.

Description

This PR handles described case. New logic that checks the case is added and also specs have been updated and added.

@lovrocolic lovrocolic merged commit abe4605 into main Mar 7, 2024
8 checks passed
@lovrocolic lovrocolic deleted the automatic-cn-upgrade branch March 7, 2024 12:55
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