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

feat(dunning): only one dunning campaign applied to organization on creation #2760

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

ancorcruz
Copy link
Contributor

Roadmap Task

👉 https://getlago.canny.io/feature-requests/p/set-up-payment-retry-logic
👉 https://getlago.canny.io/feature-requests/p/send-reminders-for-overdue-invoices

Context

We want to automate dunning process so that our users don't have to look at each customer to maximize their chances of being paid retrying payments of overdue balances and sending email reminders.

We're first automating the overdue balance payment request, before looking at individual invoices.

Description

This change ensures only one campaign can be applied to organization on creation (per organization). Adds a database unique index to ensure data consistency.

@ancorcruz ancorcruz requested a review from rsempe October 31, 2024 12:59
@ancorcruz ancorcruz self-assigned this Oct 31, 2024
on organization_id where applied_to_organization == true
previous dunning campaign applied to organzation is "un-applied"
@rsempe rsempe force-pushed the feat/auto-dunning-create-applied branch from 7eba2d2 to fa98d20 Compare November 4, 2024 20:08
@rsempe rsempe merged commit c9e4746 into main Nov 4, 2024
6 checks passed
@rsempe rsempe deleted the feat/auto-dunning-create-applied branch November 4, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants