Skip to content

Conversation

ancorcruz
Copy link
Contributor

Roadmap Task

👉 https://getlago.canny.io/feature-requests/p/support-billing-from-multiple-entities

Context

Users who invoice the same products across multiple entities face the challenge of managing separate Lago organizations.

This requires duplicating all billable metrics, plans, and setup, while also implementing additional logic to handle two different API keys and ensure the correct one is used for each affiliated entity. This process adds complexity and overhead to their billing operations.

Description

Assign invoice document number with billing entity prefix and billing entity sequential id when per_billing_entity document numbering strategy is selected. Document number strategy is set from billing entity instead of organization.

@ancorcruz ancorcruz requested a review from annvelents April 24, 2025 10:46
@ancorcruz ancorcruz self-assigned this Apr 24, 2025
@ancorcruz ancorcruz force-pushed the feat/multientities/invoice-numbering branch from 3753f26 to 121d581 Compare April 24, 2025 11:45
Copy link
Contributor

@annvelents annvelents left a comment

Choose a reason for hiding this comment

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

👏 awesome work!

@annvelents annvelents force-pushed the feat/multientities/invoice-numbering branch from 121d581 to 114d54b Compare May 12, 2025 08:47
@annvelents annvelents changed the base branch from main to fix/multientities-return-be-sequential-id-rebased May 12, 2025 08:48
@annvelents annvelents force-pushed the feat/multientities/invoice-numbering branch from d98e179 to 89e3176 Compare May 12, 2025 14:38
Base automatically changed from fix/multientities-return-be-sequential-id-rebased to main May 14, 2025 13:36
@annvelents annvelents force-pushed the feat/multientities/invoice-numbering branch 2 times, most recently from b4b452d to 555340d Compare May 15, 2025 08:07
annvelents and others added 11 commits May 15, 2025 10:47
 ## Roadmap Task

👉 https://getlago.canny.io/feature-requests/p/support-billing-from-multiple-entities

 ## Context

Users who invoice the same products across multiple entities face the
challenge of managing separate Lago organizations.

This requires duplicating all billable metrics, plans, and setup, while
also implementing additional logic to handle two different API keys and
ensure the correct one is used for each affiliated entity. This process
adds complexity and overhead to their billing operations.

 ## Description

Assing invoice document number with billing entity prefix and billing
entity sequential id when per_billing_entity document numbering strategy
is selected.
this is just an attribute assignation, no need to keep one more service
@annvelents annvelents force-pushed the feat/multientities/invoice-numbering branch from 151c555 to 07d4767 Compare May 15, 2025 08:47
@ancorcruz ancorcruz merged commit 1683b73 into main May 15, 2025
14 checks passed
@ancorcruz ancorcruz deleted the feat/multientities/invoice-numbering branch May 15, 2025 15:49
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