Flag the records in the Shipments file that have fully shipped and those where the Order still has Lines to ship. Also, flag Lines as complete or partially shipped.