Transportation chain - preliminary - main leg
Let's imagine we are in a transportation scenarion where i have a certain number of deliveries to the same customer.
Deliveries are assigned to a shipment main leg.
Deliveries are packed in large box and some documents are printed (invoice, packing list,..) and those data are captured on a external system and we create one shipment preliminary leg per large box via Idoc.
We have deliveries 1, 2,3, 4
Main shipment 1 contains delivery 1 , 2 , 3.
Main shipment 2 contains delivery 4.
Preliminary shipment 1 contains delivery 1, 2.
Preliminary shipment 2 contains delivery 3,4.
In this situation, the preliminary shipment 2 contains deliveries that are assign to 2 different main shipment. It a situation that we try to avoid.
How can i warn the user about this situation where the delivery 3 and 4 are not in the same main shipment ?
Is there a way to block this king of situation.
Thank for your help.