1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
vat2prepaymentcheckmapper.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Sale\Cashbox\Tools
;
4
5
use
Bitrix\Sale\Cashbox
;
6
7
class
Vat2PrepaymentCheckMapper
8
{
9
public
function
__construct
(
private
readonly
array
$mapVatToCalcVat) {}
10
11
public
function
getMap
() :
array
12
{
13
$prepaymentCheckList = [
14
Cashbox\PrepaymentCheck::getType
(),
15
Cashbox\PrepaymentReturnCheck::getType
(),
16
Cashbox\PrepaymentReturnCashCheck::getType
(),
17
Cashbox\FullPrepaymentCheck::getType
(),
18
Cashbox\FullPrepaymentReturnCheck::getType
(),
19
Cashbox\FullPrepaymentReturnCashCheck::getType
(),
20
];
21
22
$map
= [];
23
24
foreach
($this->mapVatToCalcVat as
$vat
=> $calcVat)
25
{
26
$map
[
$vat
] = array_fill_keys($prepaymentCheckList, $calcVat);
27
}
28
29
return
$map
;
30
}
31
32
}
Bitrix\Sale\Cashbox\FullPrepaymentCheck\getType
static getType()
Определения
fullprepaymentcheck.php:19
Bitrix\Sale\Cashbox\FullPrepaymentReturnCashCheck\getType
static getType()
Определения
fullprepaymentreturncashcheck.php:18
Bitrix\Sale\Cashbox\FullPrepaymentReturnCheck\getType
static getType()
Определения
fullprepaymentreturncheck.php:18
Bitrix\Sale\Cashbox\PrepaymentCheck\getType
static getType()
Определения
prepaymentcheck.php:20
Bitrix\Sale\Cashbox\PrepaymentReturnCashCheck\getType
static getType()
Определения
prepaymentreturncashcheck.php:17
Bitrix\Sale\Cashbox\PrepaymentReturnCheck\getType
static getType()
Определения
prepaymentreturncheck.php:17
Bitrix\Sale\Cashbox\Tools\Vat2PrepaymentCheckMapper
Определения
vat2prepaymentcheckmapper.php:8
Bitrix\Sale\Cashbox\Tools\Vat2PrepaymentCheckMapper\__construct
__construct(private readonly array $mapVatToCalcVat)
Определения
vat2prepaymentcheckmapper.php:9
Bitrix\Sale\Cashbox\Tools\Vat2PrepaymentCheckMapper\getMap
getMap()
Определения
vat2prepaymentcheckmapper.php:11
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$map
$map
Определения
config.php:5
Bitrix\Sale\Cashbox\Tools
Определения
vat2prepaymentcheckmapper.php:3
Bitrix\Sale\Cashbox
Определения
abstractcheck.php:3
$vat
$vat
Определения
template.php:273
bitrix
modules
sale
lib
cashbox
tools
vat2prepaymentcheckmapper.php
Создано системой
1.14.0