Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
shipmentinvoice.php
1<?php
2
4
5
6use Bitrix\Crm\Invoice\EntityMarker;
14
16{
17 public function getOwnerTypeId()
18 {
20 }
21
27 protected function addMarker($invoice, $entity, $result)
28 {
29 EntityMarker::addMarker($invoice, $entity, $result);
30 }
31
36 protected function loadParentEntity(array $fields)
37 {
38 $entity = null;
39
40 if(!empty($fields['ID']))
41 {
43 $entity = \Bitrix\Crm\Invoice\Invoice::load($fields['ID']);
44 }
45 return $entity;
46 }
47
53 public static function resolveEntityTypeId(Entity $shipment)
54 {
55 if(!($shipment instanceof Shipment))
56 throw new ArgumentException("Entity must be instanceof Shipment");
57
59 }
60
66 protected function getBasketItemByItem(BasketBase $basket, array $item)
67 {
68 return Invoice::getBasketItemByItem($basket, $item);
69 }
70
75 protected function getAttributesItem(BasketItem $basket)
76 {
77 return Invoice::getAttributesItem($basket);
78 }
79}
getBasketItemByItem(BasketBase $basket, array $item)