Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
prepaymentreturncheck.php
1
<?php
2
3
namespace
Bitrix\Sale\Cashbox
;
4
5
use
Bitrix\Main
;
6
Main\Localization\Loc::loadMessages(__FILE__);
7
12
class
PrepaymentReturnCheck
extends
PrepaymentCheck
13
{
17
public
static
function
getType
()
18
{
19
return
'prepaymentreturn'
;
20
}
21
26
public
static
function
getCalculatedSign
()
27
{
28
return
static::CALCULATED_SIGN_CONSUMPTION;
29
}
30
34
public
static
function
getName
()
35
{
36
return
Main\Localization\Loc::getMessage(
'SALE_CASHBOX_PREPAYMENT_RETURN_NAME'
);
37
}
38
42
protected
function
extractDataInternal
()
43
{
44
$result = parent::extractDataInternal();
45
46
if
(isset($result[
'PAYMENTS'
]))
47
{
48
foreach
($result[
'PAYMENTS'
] as $i => $payment)
49
{
50
$result[
'PAYMENTS'
][$i][
'IS_CASH'
] =
'N'
;
51
$result[
'PAYMENTS'
][$i][
'TYPE'
] = static::PAYMENT_TYPE_CASHLESS;
52
}
53
54
}
55
56
return
$result;
57
}
58
}
Bitrix\Sale\Cashbox\PrepaymentCheck
Definition
prepaymentcheck.php:16
Bitrix\Sale\Cashbox\PrepaymentReturnCheck
Definition
prepaymentreturncheck.php:13
Bitrix\Sale\Cashbox\PrepaymentReturnCheck\extractDataInternal
extractDataInternal()
Definition
prepaymentreturncheck.php:42
Bitrix\Sale\Cashbox\PrepaymentReturnCheck\getType
static getType()
Definition
prepaymentreturncheck.php:17
Bitrix\Sale\Cashbox\PrepaymentReturnCheck\getName
static getName()
Definition
prepaymentreturncheck.php:34
Bitrix\Sale\Cashbox\PrepaymentReturnCheck\getCalculatedSign
static getCalculatedSign()
Definition
prepaymentreturncheck.php:26
Bitrix\Main
Bitrix\Sale\Cashbox
Definition
abstractcheck.php:3
modules
sale
lib
cashbox
prepaymentreturncheck.php
Создано системой
1.10.0