%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 52.14.131.112 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/sale/lib/cashbox/ |
Upload File : |
<?php namespace Bitrix\Sale\Cashbox; use Bitrix\Main; use Bitrix\Main\Localization; use Bitrix\Sale\Cashbox\Internals\CashboxTable; Localization\Loc::loadMessages(__FILE__); /** * Class Cashbox1C * @package Bitrix\Sale\Cashbox */ class Cashbox1C extends Cashbox { const CACHE_ID = 'BITRIX_CASHBOX_1C_ID'; const TTL = 31536000; /** * @param Check $check * @return array */ public function buildCheckQuery(Check $check) { return array(); } /** * @param $id * @return array */ public function buildZReportQuery($id) { return array(); } /** * @return string */ public static function getName() { return Localization\Loc::getMessage('SALE_CASHBOX_1C_TITLE'); } /** * @return int */ public static function getId() { $id = 0; $cacheManager = Main\Application::getInstance()->getManagedCache(); if ($cacheManager->read(self::TTL, self::CACHE_ID)) $id = $cacheManager->get(self::CACHE_ID); if ($id <= 0) { $data = CashboxTable::getRow( array( 'select' => array('ID'), 'filter' => array('=HANDLER' => '\Bitrix\Sale\Cashbox\Cashbox1C') ) ); if (is_array($data) && $data['ID'] > 0) { $id = $data['ID']; $cacheManager->set(self::CACHE_ID, $id); } } return $id; } /** * @param array $data * @throws Main\NotImplementedException * @return array */ protected static function extractCheckData(array $data) { return array( 'ID' => $data['ID'], 'LINK_PARAMS' => array( Check::PARAM_FISCAL_DOC_ATTR => $data['LINK_PARAMS']['FISCAL_SIGN'], Check::PARAM_REG_NUMBER_KKT => $data['LINK_PARAMS']['REG_NUMBER_KKT'] ) ); } }