Upload parts

Complete code to upload parts to erp database.