Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
measurecodetotag2108mapper.php
1<?php
2
3namespace Bitrix\Sale\Cashbox;
4
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}