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