get the last file for each shipment