Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
paymentinvoicebase.php
1
<?php
2
3
namespace
Bitrix\Sale\Exchange\Entity
;
4
5
6
use Bitrix\Crm\Invoice\EntityMarker;
7
use
Bitrix\Sale\Exchange\EntityType
;
8
use
Bitrix\Sale\Order
;
9
10
class
PaymentInvoiceBase
extends
PaymentImport
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'
:
47
$resolveType =
EntityType::INVOICE_PAYMENT_CASH
;
48
break
;
49
case
'N'
:
50
$resolveType =
EntityType::INVOICE_PAYMENT_CASH_LESS
;
51
break
;
52
case
'A'
:
53
$resolveType =
EntityType::INVOICE_PAYMENT_CARD_TRANSACTION
;
54
break
;
55
default
;
56
$resolveType =
EntityType::UNDEFINED
;
57
}
58
return
$resolveType;
59
}
60
}
Bitrix\Sale\Exchange\Entity\EntityImport\$entity
$entity
Definition
entityimport.php:22
Bitrix\Sale\Exchange\Entity\PaymentImport
Definition
paymentimport.php:19
Bitrix\Sale\Exchange\Entity\PaymentInvoiceBase
Definition
paymentinvoicebase.php:11
Bitrix\Sale\Exchange\Entity\PaymentInvoiceBase\addMarker
addMarker($invoice, $entity, $result)
Definition
paymentinvoicebase.php:17
Bitrix\Sale\Exchange\Entity\PaymentInvoiceBase\resolveEntityTypeIdByCodeType
static resolveEntityTypeIdByCodeType($type)
Definition
paymentinvoicebase.php:42
Bitrix\Sale\Exchange\EntityType
Definition
entitytype.php:6
Bitrix\Sale\Exchange\EntityType\INVOICE_PAYMENT_CASH
const INVOICE_PAYMENT_CASH
Definition
entitytype.php:18
Bitrix\Sale\Exchange\EntityType\INVOICE_PAYMENT_CASH_LESS
const INVOICE_PAYMENT_CASH_LESS
Definition
entitytype.php:19
Bitrix\Sale\Exchange\EntityType\INVOICE_PAYMENT_CARD_TRANSACTION
const INVOICE_PAYMENT_CARD_TRANSACTION
Definition
entitytype.php:20
Bitrix\Sale\Exchange\EntityType\UNDEFINED
const UNDEFINED
Definition
entitytype.php:7
Bitrix\Sale\Exchange\ImportBase\$fields
$fields
Definition
importbase.php:18
Bitrix\Sale\Helpers\Order
Definition
order.php:10
Bitrix\Sale\Exchange\Entity
Definition
entityimport.php:2
modules
sale
lib
exchange
entity
paymentinvoicebase.php
Создано системой
1.10.0