1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
converterdocumentinvoice.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Sale\Exchange\OneC;
4
5
6
class
ConverterDocumentInvoice
extends
ConverterDocumentOrder
7
{
8
public
static
function
normalizeExternalCode
($xml)
9
{
10
static
$sales =
null
;
11
12
list($originatorId, $productXmlId) = explode(
"#"
, $xml, 2);
13
if
($productXmlId<>
''
)
14
{
15
if
($sales ===
null
)
16
$sales = \CCrmExternalSaleHelper::PrepareListItems();
17
18
if
(isset($sales[$originatorId]))
19
{
20
$xml = $productXmlId;
21
}
22
}
23
24
return
parent::normalizeExternalCode($xml);
25
}
26
31
static
protected
function
getStatusNameById
($id)
32
{
33
static
$statuses;
34
35
if
($statuses ===
null
)
36
{
37
while
(
$status
= \
Bitrix
\Crm\
Invoice
\InvoiceStatus::getList()->fetch())
38
{
39
$statuses[
$status
[
'STATUS_ID'
]] =
$status
[
'NAME'
];
40
}
41
42
if
(!is_array($statuses))
43
{
44
$statuses =
array
();
45
}
46
}
47
return
(isset($statuses[$id])?$statuses[$id]:
''
);
48
}
49
}
Bitrix\Sale\Exchange\Entity\Invoice
Определения
invoice.php:13
Bitrix\Sale\Exchange\OneC\ConverterDocumentInvoice
Определения
converterdocumentinvoice.php:7
Bitrix\Sale\Exchange\OneC\ConverterDocumentInvoice\getStatusNameById
static getStatusNameById($id)
Определения
converterdocumentinvoice.php:31
Bitrix\Sale\Exchange\OneC\ConverterDocumentInvoice\normalizeExternalCode
static normalizeExternalCode($xml)
Определения
converterdocumentinvoice.php:8
Bitrix\Sale\Exchange\OneC\ConverterDocumentOrder
Определения
converterdocumentorder.php:21
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$status
$status
Определения
session.php:10
Bitrix
bitrix
modules
sale
lib
exchange
onec
converterdocumentinvoice.php
Создано системой
1.14.0