Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
advancereturncashcheck.php
1
<?php
2
3
namespace
Bitrix\Sale\Cashbox
;
4
5
use
Bitrix\Main
;
6
7
Main\Localization\Loc::loadMessages(__FILE__);
8
14
class
AdvanceReturnCashCheck
extends
AdvancePaymentCheck
15
{
19
public
static
function
getType
()
20
{
21
return
'advancereturncash'
;
22
}
23
27
public
static
function
getName
()
28
{
29
return
Main\Localization\Loc::getMessage(
'SALE_CASHBOX_ADVANCE_RETURN_CASH_NAME'
);
30
}
31
35
public
static
function
getCalculatedSign
()
36
{
37
return
static::CALCULATED_SIGN_CONSUMPTION;
38
}
39
40
44
protected
function
extractDataInternal
()
45
{
46
$result = parent::extractDataInternal();
47
48
if
(isset($result[
'PAYMENTS'
]))
49
{
50
foreach
($result[
'PAYMENTS'
] as $i => $payment)
51
{
52
$result[
'PAYMENTS'
][$i][
'IS_CASH'
] =
'Y'
;
53
$result[
'PAYMENTS'
][$i][
'TYPE'
] = static::PAYMENT_TYPE_CASH;
54
}
55
56
}
57
58
return
$result;
59
}
60
}
Bitrix\Sale\Cashbox\AdvancePaymentCheck
Definition
advancepaymentcheck.php:15
Bitrix\Sale\Cashbox\AdvanceReturnCashCheck
Definition
advancereturncashcheck.php:15
Bitrix\Sale\Cashbox\AdvanceReturnCashCheck\extractDataInternal
extractDataInternal()
Definition
advancereturncashcheck.php:44
Bitrix\Sale\Cashbox\AdvanceReturnCashCheck\getType
static getType()
Definition
advancereturncashcheck.php:19
Bitrix\Sale\Cashbox\AdvanceReturnCashCheck\getName
static getName()
Definition
advancereturncashcheck.php:27
Bitrix\Sale\Cashbox\AdvanceReturnCashCheck\getCalculatedSign
static getCalculatedSign()
Definition
advancereturncashcheck.php:35
Bitrix\Main
Bitrix\Sale\Cashbox
Definition
abstractcheck.php:3
modules
sale
lib
cashbox
advancereturncashcheck.php
Создано системой
1.10.0