7Localization\Loc::loadMessages(__FILE__);
14trait CashboxBusinessRuTrait
19 public static function isCorrectionOn(): bool
28 public function buildCheckQuery(Check $check)
30 $result = parent::buildCheckQuery($check);
32 $result[
'service'][
'vendor_name'] =
'Bitrix24';
33 $result[
'print_check'] = $this->getValueFromSettings(
'INTERACTION',
'CHECK_REAL_PRINT') ===
'Y';
41 public static function getSupportedKkmModels()
56 public static function getGeneralRequiredFields()
58 $fields = parent::getGeneralRequiredFields();
60 $map = Internals\CashboxTable::getMap();
61 $fields[
'KKM_ID'] = $map[
'KKM_ID'][
'title'];
72 $settings = parent::getSettings($modelId);
74 $settings[
'INTERACTION'][
'ITEMS'][
'CHECK_REAL_PRINT'] = [
76 'LABEL' => Localization\Loc::getMessage(
'SALE_CASHBOX_BUSINESS_RU_SETTINGS_CHECK_REAL_PRINT_LABEL'),
86 protected function getOptionPrefix(): string
88 return 'business_ru_access_token';
static getByCode(string $code)