Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
invoice.php
1<?php
2
4
5
6use Bitrix\Crm\Invoice\EntityMarker;
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)
Definition invoice.php:27
static resolveEntityTypeId(Entity $order)
Definition invoice.php:62