Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
tenzorofd.php
1<?php
2
3namespace Bitrix\Sale\Cashbox;
4
7
8Localization\Loc::loadMessages(__FILE__);
9
14class 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}