Merge branch 'dev' into freight/feat/fixes-v1

This commit is contained in:
ghost2023
2026-07-02 16:43:16 +03:00
71 changed files with 5168 additions and 672 deletions

View File

@@ -876,6 +876,11 @@ export class BillingService {
);
}
const amountDue = Number(invoice.balanceAmount ?? invoice.totalAmount);
if (!(amountDue > 0)) {
throw new BadRequestException("Invoice has no outstanding balance.");
}
const result = await this.payment.initiate({
referenceId: invoice.sourceId,
source: invoice.source,