Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
tenzorofd.php
1
<?php
2
3
namespace
Bitrix\Sale\Cashbox
;
4
5
use
Bitrix\Main\Localization
;
6
use
Bitrix\Main
;
7
8
Localization\Loc::loadMessages(__FILE__);
9
14
class
TenzorOfd
extends
Ofd
15
{
16
const
ACTIVE_URL
=
'https://ofd.sbis.ru/rec/'
;
17
21
protected
function
getUrl
()
22
{
23
return
static::ACTIVE_URL;
24
}
25
30
public
static
function
getName
()
31
{
32
return
Localization\Loc::getMessage(
'SALE_CASHBOX_TENZOR_OFD_NAME'
);
33
}
34
39
public
function
generateCheckLink
($data)
40
{
41
if
(!isset($data[
Check::PARAM_REG_NUMBER_KKT
]))
42
return
''
;
43
44
$url = $this->
getUrl
();
45
46
$dateObj = Main\Type\DateTime::createFromTimestamp($data[
Check::PARAM_DOC_TIME
]);
47
$date = $dateObj->format(
'dmy'
);
48
$url .= $data[
Check::PARAM_REG_NUMBER_KKT
].
'/'
.$date.
'/'
.$data[
Check::PARAM_FISCAL_DOC_ATTR
];
49
50
return
$url;
51
}
52
53
}
Bitrix\Sale\Cashbox\AbstractCheck\PARAM_DOC_TIME
const PARAM_DOC_TIME
Definition
abstractcheck.php:29
Bitrix\Sale\Cashbox\AbstractCheck\PARAM_FISCAL_DOC_ATTR
const PARAM_FISCAL_DOC_ATTR
Definition
abstractcheck.php:24
Bitrix\Sale\Cashbox\AbstractCheck\PARAM_REG_NUMBER_KKT
const PARAM_REG_NUMBER_KKT
Definition
abstractcheck.php:28
Bitrix\Sale\Cashbox\Ofd
Definition
ofd.php:15
Bitrix\Sale\Cashbox\TenzorOfd
Definition
tenzorofd.php:15
Bitrix\Sale\Cashbox\TenzorOfd\getName
static getName()
Definition
tenzorofd.php:30
Bitrix\Sale\Cashbox\TenzorOfd\ACTIVE_URL
const ACTIVE_URL
Definition
tenzorofd.php:16
Bitrix\Sale\Cashbox\TenzorOfd\generateCheckLink
generateCheckLink($data)
Definition
tenzorofd.php:39
Bitrix\Sale\Cashbox\TenzorOfd\getUrl
getUrl()
Definition
tenzorofd.php:21
Bitrix\Main\Localization
Definition
culture.php:8
Bitrix\Main
Bitrix\Sale\Cashbox
Definition
abstractcheck.php:3
modules
sale
lib
cashbox
tenzorofd.php
Создано системой
1.10.0