Merge pull request #876 from Tria-plc/freight_feature/usermanagement

changes
This commit is contained in:
marshal
2026-07-21 15:15:19 +03:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -1785,6 +1785,10 @@ export class ContractBookingService {
// pricing service derives wagon counts from the in-memory lines.
const route = await this.resolveRoute(contract, dto.contractRouteId);
const previewBooking = Object.assign(new Booking(), {
// contractId makes the preview price off the contract's frozen rate
// snapshots exactly like the persisted booking will — without it the
// preview total is 0 on a leg with no live rate and the form blocks.
contractId: contract.id,
freightType: contract.freightType,
tradeDirection: contract.tradeDirection,
paymentCurrency: contract.paymentCurrency,