8Localization\Loc::loadMessages(__FILE__);
18 $result = parent::buildCheckQuery($check);
22 $result[
'validateMarkingCodes'] =
true;
30 if (isset($check[
'items']))
32 foreach ($check[
'items'] as $item)
35 isset($item[
'imcParams'])
36 && !empty($item[
'imcParams'][
'imc'])
49 $position = parent::buildPosition($checkData, $item);
51 $position[
'measurementUnit'] = (int)$this->
getValueFromSettings(
'MEASURE', $item[
'measure_code']);
53 if (isset($position[
'nomenclatureCode']))
55 unset($position[
'nomenclatureCode']);
58 if (isset($item[
'marking_code']))
60 $position[
'imcParams'] = [
62 'imc' => base64_encode($item[
'marking_code']),
64 'imcModeProcessing' => 0,
73 if (mb_strpos($checkData[
'type'],
'sellreturn') === 0)
75 return 'itemPieceReturn';
78 return 'itemPieceSold';
86 $result = parent::getPaymentObjectMap();
101 return Localization\Loc::getMessage(
'SALE_CASHBOX_BITRIX_V3_TITLE');
110 $settings = parent::getSettings($modelId);
112 $kkmList = static::getSupportedKkmModels();
113 if (isset($kkmList[$modelId]))
115 $settings[
'MEASURE'] = static::getMeasureSettings();
124 if (Main\Loader::includeModule(
'catalog'))
126 $measuresList = \CCatalogMeasure::getList();
127 while ($measure = $measuresList->fetch())
129 $measureItems[$measure[
'CODE']] = [
131 'LABEL' => $measure[
'MEASURE_TITLE'],
139 'LABEL' => Localization\Loc::getMessage(
'SALE_CASHBOX_MEASURE_SUPPORT_SETTINGS'),
140 'ITEMS' => $measureItems,
static getSettings($modelId=0)
static getMeasureSettings()
buildCheckQuery(Check $check)
buildPosition(array $checkData, array $item)
isContainMarkingCode(array $check)
buildEstimatedStatus(array $checkData)
getValueFromSettings($name, $code)
const PAYMENT_OBJECT_COMMODITY_MARKING_EXCISE
const PAYMENT_OBJECT_COMMODITY_MARKING_NO_MARKING_EXCISE
const PAYMENT_OBJECT_COMMODITY_MARKING
const PAYMENT_OBJECT_COMMODITY_MARKING_NO_MARKING
static getTag2108Value(?string $measureCode)