Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
prepaymentreturncashcheck.php
1
<?php
2
3
namespace
Bitrix\Sale\Cashbox
;
4
5
use
Bitrix\Main
;
6
Main\Localization\Loc::loadMessages(__FILE__);
7
12
class
PrepaymentReturnCashCheck
extends
PrepaymentCheck
13
{
17
public
static
function
getType
()
18
{
19
return
'prepaymentreturncash'
;
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_CASH_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'
] =
'Y'
;
51
$result[
'PAYMENTS'
][$i][
'TYPE'
] = static::PAYMENT_TYPE_CASH;
52
}
53
54
}
55
56
return
$result;
57
}
58
}
Bitrix\Sale\Cashbox\PrepaymentCheck
Definition
prepaymentcheck.php:16
Bitrix\Sale\Cashbox\PrepaymentReturnCashCheck
Definition
prepaymentreturncashcheck.php:13
Bitrix\Sale\Cashbox\PrepaymentReturnCashCheck\extractDataInternal
extractDataInternal()
Definition
prepaymentreturncashcheck.php:42
Bitrix\Sale\Cashbox\PrepaymentReturnCashCheck\getType
static getType()
Definition
prepaymentreturncashcheck.php:17
Bitrix\Sale\Cashbox\PrepaymentReturnCashCheck\getName
static getName()
Definition
prepaymentreturncashcheck.php:34
Bitrix\Sale\Cashbox\PrepaymentReturnCashCheck\getCalculatedSign
static getCalculatedSign()
Definition
prepaymentreturncashcheck.php:26
Bitrix\Main
Bitrix\Sale\Cashbox
Definition
abstractcheck.php:3
modules
sale
lib
cashbox
prepaymentreturncashcheck.php
Создано системой
1.10.0