working out purchase order