mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 12:18:11 +00:00
Merge branch 'freight/feature/last_mile_invoice' of github.com:Tria-plc/edr-platform into freight/feature/last_mile_invoice
This commit is contained in:
@@ -297,8 +297,6 @@ export class PaymentService {
|
|||||||
// if (!intent) throw new NotFoundException("PaymentIntent not found");
|
// if (!intent) throw new NotFoundException("PaymentIntent not found");
|
||||||
// if (intent.status === "success") return { alreadyFinalized: true };
|
// if (intent.status === "success") return { alreadyFinalized: true };
|
||||||
|
|
||||||
const paidAt = input.paidAt ?? new Date();
|
|
||||||
|
|
||||||
// Every booking is a real shipment now (contracts are a separate aggregate),
|
// Every booking is a real shipment now (contracts are a separate aggregate),
|
||||||
// so payment always settles the booking to PAID and enters allocation.
|
// so payment always settles the booking to PAID and enters allocation.
|
||||||
await this.datasource.transaction(async (mg) => {
|
await this.datasource.transaction(async (mg) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user