Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
conturofd.php
1
<?php
2
3
namespace
Bitrix\Sale\Cashbox
;
4
5
use
Bitrix\Main\Localization
;
6
use
Bitrix\Main
;
7
use
Bitrix\Sale\Result
;
8
9
Localization\Loc::loadMessages(__FILE__);
10
15
class
ConturOfd
extends
Ofd
16
{
17
const
ACTIVE_URL
=
'https://cash-ntt.kontur.ru/CashReceipt/View'
;
18
22
protected
function
getUrl
()
23
{
24
return
static::ACTIVE_URL;
25
}
26
31
public
static
function
getName
()
32
{
33
return
Localization\Loc::getMessage(
'SALE_CASHBOX_CONTUR_OFD_NAME'
);
34
}
35
40
public
function
generateCheckLink
($data)
41
{
42
$url = $this->
getUrl
();
43
$url .=
'/FN/'
.$data[
Check::PARAM_FN_NUMBER
];
44
$url .=
'/FD/'
.$data[
Check::PARAM_FISCAL_DOC_NUMBER
];
45
$url .=
'/FP/'
.$data[
Check::PARAM_FISCAL_DOC_ATTR
];
46
47
return
$url;
48
}
49
}
Bitrix\Main\DB\Result
Definition
result.php:19
Bitrix\Sale\Cashbox\AbstractCheck\PARAM_FN_NUMBER
const PARAM_FN_NUMBER
Definition
abstractcheck.php:26
Bitrix\Sale\Cashbox\AbstractCheck\PARAM_FISCAL_DOC_ATTR
const PARAM_FISCAL_DOC_ATTR
Definition
abstractcheck.php:24
Bitrix\Sale\Cashbox\AbstractCheck\PARAM_FISCAL_DOC_NUMBER
const PARAM_FISCAL_DOC_NUMBER
Definition
abstractcheck.php:23
Bitrix\Sale\Cashbox\ConturOfd
Definition
conturofd.php:16
Bitrix\Sale\Cashbox\ConturOfd\getName
static getName()
Definition
conturofd.php:31
Bitrix\Sale\Cashbox\ConturOfd\ACTIVE_URL
const ACTIVE_URL
Definition
conturofd.php:17
Bitrix\Sale\Cashbox\ConturOfd\generateCheckLink
generateCheckLink($data)
Definition
conturofd.php:40
Bitrix\Sale\Cashbox\ConturOfd\getUrl
getUrl()
Definition
conturofd.php:22
Bitrix\Sale\Cashbox\Ofd
Definition
ofd.php:15
Bitrix\Main\Localization
Definition
culture.php:8
Bitrix\Main
Bitrix\Sale\Cashbox
Definition
abstractcheck.php:3
modules
sale
lib
cashbox
conturofd.php
Создано системой
1.10.0