1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
shipmentinvoice.php
См. документацию.
1<?php
2
3namespace Bitrix\Sale\Exchange\Entity;
4
5
6use Bitrix\Crm\Invoice\EntityMarker;
7use Bitrix\Main\ArgumentException;
8use Bitrix\Sale\BasketBase;
9use Bitrix\Sale\BasketItem;
10use Bitrix\Sale\Exchange\EntityType;
11use Bitrix\Sale\Internals\Entity;
12use Bitrix\Sale\Order;
13use Bitrix\Sale\Shipment;
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}
addMarker($invoice, $entity, $result)
Определения shipmentinvoice.php:27
getAttributesItem(BasketItem $basket)
Определения shipmentinvoice.php:75
static resolveEntityTypeId(Entity $shipment)
Определения shipmentinvoice.php:53
getBasketItemByItem(BasketBase $basket, array $item)
Определения shipmentinvoice.php:66
const INVOICE_SHIPMENT
Определения entitytype.php:17
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
$entity
Определения ufield.php:9
$fields
Определения yandex_run.php:501