1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
invoice.php
См. документацию.
1<?php
2
3namespace Bitrix\Sale\Exchange\Entity;
4
5
6use Bitrix\Crm\Invoice\EntityMarker;
7use Bitrix\Main\ArgumentException;
8use Bitrix\Sale\Exchange\EntityType;
9use Bitrix\Sale\Internals\Entity;
10use Bitrix\Sale\Order;
11
12class Invoice extends OrderImport
13{
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 createEntity(array $fileds)
37 {
38 return \Bitrix\Crm\Invoice\Invoice::create($this->settings->getSiteId(), $fileds['USER_ID'], $this->settings->getCurrency());
39 }
40
45 protected function loadParentEntity(array $fields)
46 {
47 $entity = null;
48
49 if(!empty($fields['ID']))
50 {
52 $entity = \Bitrix\Crm\Invoice\Invoice::load($fields['ID']);
53 }
54 return $entity;
55 }
56
62 public static function resolveEntityTypeId(Entity $order)
63 {
64 if(!($order instanceof Order))
65 throw new ArgumentException("Entity must be instanceof Order");
66
68 }
69
74 protected function getShipmentTypeId()
75 {
77 }
78}
addMarker($invoice, $entity, $result)
Определения invoice.php:27
createEntity(array $fileds)
Определения invoice.php:36
static resolveEntityTypeId(Entity $order)
Определения invoice.php:62
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
$order
Определения payment.php:8
$fields
Определения yandex_run.php:501