handled unknown dni and known_unit_codes for quantity codes