mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 13:40:57 +00:00
Merge pull request #876 from Tria-plc/freight_feature/usermanagement
changes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user