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