• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

raystack / frontier / 12154757091
38%

Build:
DEFAULT BRANCH: main
Ran 04 Dec 2024 07:13AM UTC
Jobs 1
Files 214
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Dec 2024 07:09AM UTC coverage: 30.423% (-0.4%) from 30.842%
12154757091

push

github

web-flow
feat: generate invoice for overdraft credits (#796)

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 invoice for overdraft credits for same
time range, no new invoice will be created for that customer.
Currently the system generates them on the first day of the month.
When the overdraft invoice is created for the first time, it
accounts for transactions from the start of customer life but
then moving forward only accounts from the last month time
range.

Reconcilation of these invoice happens on same cadence as
invoices gets synced from the billing provider.

Signed-off-by: Kush Sharma <thekushsharma@gmail.com>

37 of 518 new or added lines in 13 files covered. (7.14%)

5 existing lines in 1 file now uncovered.

7667 of 25201 relevant lines covered (30.42%)

9.45 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% billing/usage/service.go
2
0.0
0.0% cmd/serve.go
3
50.0
-50.0% billing/credit/credit.go
3
88.64
-3.13% billing/credit/service.go
3
0.0
0.0% pkg/server/interceptors/authorization.go
6
0.0
billing/invoice/invoice.go
7
0.0
0.0% internal/api/v1beta1/billing_invoice.go
8
0.0
pkg/utils/pointers.go
17
58.59
0.96% pkg/db/db.go
32
0.0
0.0% internal/store/postgres/billing_invoice_repository.go
48
2.72
-0.34% internal/store/postgres/billing_transactions_repository.go
351
1.36
1.36% billing/invoice/service.go

Uncovered Existing Lines

Lines Coverage ∆ File
5
1.36
1.36% billing/invoice/service.go
Jobs
ID Job ID Ran Files Coverage
1 12154757091.1 04 Dec 2024 07:13AM UTC 214
30.42
GitHub Action Run
Source Files on build 12154757091
  • Tree
  • List 214
  • Changed 17
  • Source Changed 0
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d4b1a437 on github
  • Prev Build on main (#12153549585)
  • Next Build on main (#12177800615)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc