Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Make sure serviceType, shipmentTerm and serviceContract are the same for different Bookings on the same SI #56

Open
HenrikHL opened this issue Feb 1, 2021 · 0 comments

Comments

@HenrikHL
Copy link
Contributor

HenrikHL commented Feb 1, 2021

In order to get a serviceType, shipmentTerm or serviceContract for a TransportDocument (TD) it is necessary to get this information from the Booking. Since the BookingReference is conditional in the ShippingInstruction (SI) "header" it might be necessary to go to CargoItems in order to get a BookingReference.
There is no order on CargoItems so no matter which Booking you get from a CargoItem - the above 3 values (5 since there is both an origin and a destination) need to be the same.
Solution: When POSTing or PUTting a SI - serviceType, shipmentTerm and serviceContract needs to be checked in all linked BookingReferences and make sure they are the same - if not - the POST or PUT needs to be rejected.

@HenrikHL HenrikHL assigned nt-gt and unassigned nt-gt Feb 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants