68 if(empty($restrictionFields))
71 $shpLocCode = self::extractParams($shipment);
74 if($shpLocCode ===
'')
75 return array_keys($restrictionFields);
78 'filter' =>
array(
'=CODE' => $shpLocCode),
79 'select' =>
array(
'CODE',
'LEFT_MARGIN',
'RIGHT_MARGIN')
83 if(!$shpLocParams =
$res->fetch())
84 return array_keys($restrictionFields);
86 $srvLocCodesCompat = static::getLocationsCompat($restrictionFields, $shpLocParams[
'LEFT_MARGIN'], $shpLocParams[
'RIGHT_MARGIN']);
88 foreach($srvLocCodesCompat as $locCode => $deliveries)
90 foreach($deliveries as $deliveryId)
92 if(isset($restrictionFields[$deliveryId]))
94 unset($restrictionFields[$deliveryId]);
99 return array_keys($restrictionFields);