Currently trying to get BookIns working but having some troubles.
Current issues:
- 1. Duplicate lines being created
2. Can't seem to get LineDetail to work
My current process is (all stateless)
- 1. Create a shipment in Jiwa
2. Commit shipment for booking
3. Create a BookIn using /BookIns/FromShipmentNo
4. Based on the response from /BookIns/FromShipmentNo
a) Update the JSON/Lines/Quantity fields
b) Add a line details entry to JSON/Lines/LineDetails
6. Patch the shipment using the updated data from 4. using /BookIns/{BookInID} patch endpoint
This will result in the lines being updated but the original lines are duplicated.
It will also ignore the contents of JSON/Lines/LineDetails and just create a dummy value based on JSON/Lines/Quantity.
This is an issue because I am passing Expiry and Batch/Serials through JSON/Lines/LineDetails.
If I update the lines via the /BookIns/{BookInID}/Lines/{LineID} patch endpoint, there are no duplicates created but JSON/Lines/LineDetails are still ignored.
I would also like to avoid this and do it via a single BookIn patch request if possible.
I have attached a sample /BookIns/{BookInID} patch request.
I have tried updating all the JSON/Lines/Quantity* fields with appropriate in/left/allocated fields and fully populated JSON/Lines/LineDetails nodes but they didn't seem to have any affect, so I have left them out of my example.