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