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: generate invoice for overdraft credits #796

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kushsharma
Copy link
Member

@kushsharma kushsharma commented Oct 20, 2024

It's necessary to configure the product name to calculate per unit price before the overdraft credits can be invoiced in billing.customer.credit_overdraft_product. If not set, invoice reconcilation and creation is skipped.

If there is already an open(unpaid) invoice for overdraft credits, no new invoice will be created for that customer. Reconciliation of these invoice happens on same cadence as invoices gets synced from the billing provider.

Copy link

vercel bot commented Oct 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
frontier ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 21, 2024 4:53am

@coveralls
Copy link

coveralls commented Oct 20, 2024

Pull Request Test Coverage Report for Build 11433435917

Details

  • 6 of 384 (1.56%) changed or added relevant lines in 11 files are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.02%) to 9.674%

Changes Missing Coverage Covered Lines Changed/Added Lines %
billing/usage/service.go 0 1 0.0%
internal/api/v1beta1/billing_invoice.go 0 1 0.0%
cmd/serve.go 0 2 0.0%
billing/credit/credit.go 0 3 0.0%
billing/invoice/invoice.go 0 6 0.0%
internal/store/postgres/billing_transactions_repository.go 0 6 0.0%
pkg/utils/pointers.go 0 8 0.0%
internal/store/postgres/billing_invoice_repository.go 0 32 0.0%
pkg/db/db.go 0 40 0.0%
billing/invoice/service.go 0 279 0.0%
Files with Coverage Reduction New Missed Lines %
billing/invoice/service.go 5 0.0%
Totals Coverage Status
Change from base Build 11363741830: -0.02%
Covered Lines: 11082
Relevant Lines: 114556

💛 - Coveralls

It's necessary to configure the product name to calculate
per unit price before the overdraft credits can be invoiced
in `billing.customer.credit_overdraft_product`.
If not set, invoice reconcilation and creation is skipped.

If there is already an open(unpaid) invoice for overdraft
credits, no new invoice will be created for that customer.
Reconcilation of these invoice happens on same cadence as
invoices gets synced from the billing provider.

Signed-off-by: Kush Sharma <[email protected]>
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