3namespace Bitrix\Sale\Exchange;
6use Bitrix\Sale\Exchange\Entity\EntityImport;
7use Bitrix\Sale\Exchange\OneC\DocumentType;
18 if(
$item->getOwnerTypeId() <> static::getParentEntityTypeId())
33 protected function getProductsItems(
array $fields)
35 return (isset($fields[
'ITEMS']) && is_array($fields[
'ITEMS'])) ? $fields[
'ITEMS']:
array();
43 protected function hasDocumentByTypeId(
$type_id,
array $documents)
45 $documentImport = $this->getDocumentByTypeId(
$type_id, $documents);
47 return ($documentImport !==
null);
55 protected function getDocumentByTypeId(
$type_id,
array $documents)
57 foreach($documents as $document)
59 if(DocumentType::isDefined(
$type_id))
61 if($document->getTypeId() ==
$type_id)
96 protected function deliveryServiceExists(
array $list)
98 $deliveryItem = $this->getDeliveryServiceItem($list);
100 return !($deliveryItem ===
null);
static isDefined($typeID)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
foreach(CLists::GetPermission() as $type_id=> $groups)(in_array($type_id, $arIBTypes["REFERENCE_ID"]))($groups as $group)("group_right[n". $i."]", $arGroups, $group, GetMessage("LISTS_OPTIONS_CHOOSE_GROUP"))?></td >< td ><?echo SelectBoxFromArray("type_right[n". $i."]" $type_id