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(customers): Add currency field #460

Merged
merged 1 commit into from
Sep 15, 2022
Merged

Conversation

vincent-pochet
Copy link
Collaborator

Context

Currently, we cannot apply a coupon, an add-on or even prepaid-credits if a customer has no active subscription. This problem happen because customer object does not hold the currency directly, but via the currency of the plan of it’s first active subscription.

It’s a problem when a plan is invoiced in-advance because it can then take up to 1 year to apply the mentioned objects on the first generated invoice.

Description

This PR is the first one of the feature, it simply add the new currency field to the customer model

@vincent-pochet vincent-pochet added the Customer Customer management label Sep 15, 2022
@vincent-pochet vincent-pochet self-assigned this Sep 15, 2022
@vincent-pochet vincent-pochet merged commit 1c916b5 into main Sep 15, 2022
@vincent-pochet vincent-pochet deleted the fature/customer-currency branch September 15, 2022 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Customer management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants