Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
measurecodetotag2108mapper.php
1
<?php
2
3
namespace
Bitrix\Sale\Cashbox
;
4
14
class
MeasureCodeToTag2108Mapper
15
{
19
protected
static
array
$map
= [
20
'796'
=> 0,
21
'163'
=> 10,
22
'166'
=> 11,
23
'168'
=> 12,
24
'4'
=> 20,
25
'5'
=> 21,
26
'6'
=> 22,
27
'51'
=> 30,
28
'53'
=> 31,
29
'55'
=> 32,
30
'111'
=> 40,
31
'112'
=> 41,
32
'113'
=> 42,
33
'245'
=> 50,
34
'233'
=> 51,
35
'359'
=> 70,
36
'356'
=> 71,
37
'355'
=> 72,
38
'354'
=> 73,
39
'256'
=> 80,
40
'257'
=> 81,
41
'2553'
=> 82,
42
'2554'
=> 83,
43
];
44
45
protected
const
UNKNOWN_TYPE
= 255;
46
51
public
static
function
getTag2108Value
(?
string
$measureCode)
52
{
53
return
static::$map[$measureCode] ?? static::UNKNOWN_TYPE;
54
}
55
}
Bitrix\Sale\Cashbox\MeasureCodeToTag2108Mapper
Definition
measurecodetotag2108mapper.php:15
Bitrix\Sale\Cashbox\MeasureCodeToTag2108Mapper\UNKNOWN_TYPE
const UNKNOWN_TYPE
Definition
measurecodetotag2108mapper.php:45
Bitrix\Sale\Cashbox\MeasureCodeToTag2108Mapper\getTag2108Value
static getTag2108Value(?string $measureCode)
Definition
measurecodetotag2108mapper.php:51
Bitrix\Sale\Cashbox\MeasureCodeToTag2108Mapper\$map
static array $map
Definition
measurecodetotag2108mapper.php:19
Bitrix\Sale\Cashbox
Definition
abstractcheck.php:3
modules
sale
lib
cashbox
measurecodetotag2108mapper.php
Создано системой
1.10.0