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(credit_notes): Add service to create a credit note #531

Merged
merged 6 commits into from
Oct 11, 2022

Conversation

vincent-pochet
Copy link
Collaborator

Roadmap Task

👉 getlago/lago#59

Context

The objective of this feature is to introduce a new concept of credit notes.

The main reason behind this need is to handle the following case:

  • If an overdue has been paid because a customer passes from a yearly plan to a monthly plan (in_advance), we charge the customer as if the remainder does not exist.

Description

This PR adds the logic to create a credit note from an invoice and a list of fees

@vincent-pochet vincent-pochet added Customer Customer management Invoice Related to Invoices labels Oct 11, 2022
@vincent-pochet vincent-pochet self-assigned this Oct 11, 2022
@vincent-pochet vincent-pochet force-pushed the ftr-credit-notes-create branch from 909facf to 4f822f3 Compare October 11, 2022 15:53
@vincent-pochet vincent-pochet merged commit fc36008 into main Oct 11, 2022
@vincent-pochet vincent-pochet deleted the ftr-credit-notes-create branch October 11, 2022 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Customer management Invoice Related to Invoices
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants