public static function checkLocationCodeExists($code) { $res = Location\LocationTable::getByCode($code)->fetch(); return intval($res['ID']); }
protected static function getErrorSingle(array $input, $value) { return \Bitrix\Sale\Location\LocationTable::getByCode($value)->fetch() ? array() : array('INVALID' => Loc::getMessage('INPUT_INVALID_ERROR')); }