mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 04:50:54 +00:00
feat(contracts): per-cargo bulk contract templates
This commit is contained in:
@@ -424,6 +424,8 @@ export class ContractTransitionService {
|
||||
contract.tradeDirection,
|
||||
contract.freightType,
|
||||
contract.customsClearingEnabled,
|
||||
// Bulk templates are keyed by the contract's cargo type.
|
||||
(contract.cargoScope ?? []).find((c) => c.cargoTypeId)?.cargoTypeId,
|
||||
);
|
||||
if (!active) return null;
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user