added checking for reason for emergency order and reason for unexpected quantity