Skip to content

Commit 8ef1890

Browse files
authored
fix(billing): stop duplicate credit overdraft invoices (#1498)
1 parent fd403b0 commit 8ef1890

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎billing/invoice/service.go‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,9 @@ func (s *Service) GenerateForCredits(ctx context.Context) error {
492492
break
493493
}
494494
}
495+
if lastOverdraftInvoice != nil {
496+
break
497+
}
495498
}
496499

497500
// check if invoice line items are of type credit and matches the current range

0 commit comments

Comments
 (0)