Merge pull request #341 from Tria-plc/freight/feature/last_mile_invoice

fix
This commit is contained in:
yaschalew10
2026-06-29 15:28:39 +03:00
committed by GitHub

View File

@@ -297,8 +297,6 @@ export class PaymentService {
// if (!intent) throw new NotFoundException("PaymentIntent not found");
// 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),
// so payment always settles the booking to PAID and enters allocation.
await this.datasource.transaction(async (mg) => {