Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
exportonecpackagecrm.php
1
<?php
2
3
namespace
Bitrix\Sale\Exchange
;
4
5
6
use
Bitrix\Sale\Exchange\Entity\Invoice
;
7
use
Bitrix\Sale\Exchange\Entity\PaymentInvoiceBase
;
8
use
Bitrix\Sale\Exchange\Entity\ShipmentInvoice
;
9
use
Bitrix\Sale\Order
;
10
use
Bitrix\Sale\Payment
;
11
use
Bitrix\Sale\Shipment
;
12
13
class
ExportOneCPackageCRM
extends
ExportOneCPackageSale
14
{
15
16
protected
function
resolveEntityTypeId
(\
Bitrix
\
Sale
\Internals\
Entity
$entity)
17
{
18
$typeId =
EntityType::UNDEFINED
;
19
20
if
($entity instanceof
Order
)
21
$typeId = Invoice::resolveEntityTypeId($entity);
22
elseif ($entity instanceof
Payment
)
23
$typeId =
PaymentInvoiceBase::resolveEntityTypeId
($entity);
24
elseif ($entity instanceof
Shipment
)
25
$typeId =
ShipmentInvoice::resolveEntityTypeId
($entity);
26
27
return
$typeId;
28
}
29
30
static
protected
function
getParentEntityTypeId
()
31
{
32
return
EntityType::INVOICE
;
33
}
34
35
static
protected
function
getShipmentEntityTypeId
()
36
{
37
return
EntityType::INVOICE_SHIPMENT
;
38
}
39
40
static
protected
function
getPaymentCardEntityTypeId
()
41
{
42
return
EntityType::INVOICE_PAYMENT_CARD_TRANSACTION
;
43
}
44
45
static
protected
function
getPaymentCashEntityTypeId
()
46
{
47
return
EntityType::INVOICE_PAYMENT_CASH
;
48
}
49
50
static
protected
function
getPaymentCashLessEntityTypeId
()
51
{
52
return
EntityType::INVOICE_PAYMENT_CASH_LESS
;
53
}
54
58
protected
function
getShemVersion
()
59
{
60
return
static::SHEM_VERSION_3_1;
61
}
62
}
Bitrix\Catalog\Model\Entity
Definition
entity.php:12
Bitrix\Sale\Exchange\Entity\EntityImport\resolveEntityTypeId
static resolveEntityTypeId(Sale\Internals\Entity $entity)
Definition
entityimport.php:312
Bitrix\Sale\Exchange\Entity\Invoice
Definition
invoice.php:13
Bitrix\Sale\Exchange\Entity\PaymentInvoiceBase
Definition
paymentinvoicebase.php:11
Bitrix\Sale\Exchange\Entity\ShipmentInvoice
Definition
shipmentinvoice.php:16
Bitrix\Sale\Exchange\Entity\ShipmentInvoice\resolveEntityTypeId
static resolveEntityTypeId(Entity $shipment)
Definition
shipmentinvoice.php:53
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
const INVOICE
Definition
entitytype.php:16
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\EntityType\INVOICE_SHIPMENT
const INVOICE_SHIPMENT
Definition
entitytype.php:17
Bitrix\Sale\Exchange\ExportOneCPackageCRM
Definition
exportonecpackagecrm.php:14
Bitrix\Sale\Exchange\ExportOneCPackageCRM\resolveEntityTypeId
resolveEntityTypeId(\Bitrix\Sale\Internals\Entity $entity)
Definition
exportonecpackagecrm.php:16
Bitrix\Sale\Exchange\ExportOneCPackageCRM\getShemVersion
getShemVersion()
Definition
exportonecpackagecrm.php:58
Bitrix\Sale\Exchange\ExportOneCPackageCRM\getPaymentCashEntityTypeId
static getPaymentCashEntityTypeId()
Definition
exportonecpackagecrm.php:45
Bitrix\Sale\Exchange\ExportOneCPackageCRM\getShipmentEntityTypeId
static getShipmentEntityTypeId()
Definition
exportonecpackagecrm.php:35
Bitrix\Sale\Exchange\ExportOneCPackageCRM\getPaymentCardEntityTypeId
static getPaymentCardEntityTypeId()
Definition
exportonecpackagecrm.php:40
Bitrix\Sale\Exchange\ExportOneCPackageCRM\getPaymentCashLessEntityTypeId
static getPaymentCashLessEntityTypeId()
Definition
exportonecpackagecrm.php:50
Bitrix\Sale\Exchange\ExportOneCPackageCRM\getParentEntityTypeId
static getParentEntityTypeId()
Definition
exportonecpackagecrm.php:30
Bitrix\Sale\Exchange\ExportOneCPackageSale
Definition
exportonecpackagesale.php:15
Bitrix\Sale\Helpers\Order
Definition
order.php:10
Bitrix\Sale\Payment
Definition
payment.php:19
Bitrix\Sale\Shipment
Definition
shipment.php:21
Bitrix\Sale\Exchange
Definition
basetrait.php:2
Bitrix
Sale
modules
sale
lib
exchange
exportonecpackagecrm.php
Создано системой
1.10.0