Creation of unique tracking number for shipment

Things left:
1)Insert products into shipment list. (shipment id, product names,
product ids, teus, total price)
2)Insert a compiled information to law for his webpart. (Products,
country, ship name and weight.)
3) Updates status for ship once shipment has been scheduled.
4) Cater for rejected ships and unloading of goods.
Warehouse shipment details updated

Need to update product status at partner list, and ship's shipment id
and status too.
And finally a list for law to reference
Export for Law