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

raystack / frontier / 11772280490
30%
main: 38%

Build:
Build:
LAST BUILD BRANCH: perf/optimize-release-caching
DEFAULT BRANCH: main
Ran 11 Nov 2024 04:47AM 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

11 Nov 2024 04:42AM UTC coverage: 30.398% (-0.4%) from 30.823%
11772280490

Pull #796

github

kushsharma
feat: generate invoice for overdraft credits

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

37 of 521 new or added lines in 13 files covered. (7.1%)

5 existing lines in 1 file now uncovered.

7661 of 25202 relevant lines covered (30.4%)

9.43 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
51
2.73
-0.4% 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 11772280490.1 11 Nov 2024 04:47AM UTC 214
30.4
GitHub Action Run
Source Files on build 11772280490
  • Tree
  • List 214
  • Changed 17
  • Source Changed 0
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #796
  • PR Base - main (#11739744280)
  • 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