Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
paymentinvoicebase.php
1<?php
2
4
5
6use Bitrix\Crm\Invoice\EntityMarker;
9
11{
17 protected function addMarker($invoice, $entity, $result)
18 {
19 EntityMarker::addMarker($invoice, $entity, $result);
20 }
21
26 protected function loadParentEntity(array $fields)
27 {
28 $entity = null;
29
30 if(!empty($fields['ID']))
31 {
33 $entity = \Bitrix\Crm\Invoice\Invoice::load($fields['ID']);
34 }
35 return $entity;
36 }
37
42 static public function resolveEntityTypeIdByCodeType($type)
43 {
44 switch($type)
45 {
46 case 'Y':
48 break;
49 case 'N':
51 break;
52 case 'A':
54 break;
55 default;
56 $resolveType = EntityType::UNDEFINED;
57 }
58 return $resolveType;
59 }
60}