Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sellreturncheck.php
1
<?php
2
3
namespace
Bitrix\Sale\Cashbox
;
4
5
use
Bitrix\Main\Localization\Loc
;
6
use
Bitrix\Main\NotImplementedException
;
7
8
Loc::loadMessages
(__FILE__);
9
14
class
SellReturnCheck
extends
SellCheck
15
{
19
public
static
function
getType
()
20
{
21
return
'sellreturn'
;
22
}
23
28
public
static
function
getCalculatedSign
()
29
{
30
return
static::CALCULATED_SIGN_CONSUMPTION;
31
}
32
36
public
static
function
getName
()
37
{
38
return
Loc::getMessage
(
'SALE_CASHBOX_SELL_RETURN_NAME'
);
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'
] =
'N'
;
53
$result[
'PAYMENTS'
][$i][
'TYPE'
] = static::PAYMENT_TYPE_CASHLESS;
54
}
55
56
}
57
58
return
$result;
59
}
60
64
public
static
function
getSupportedEntityType
()
65
{
66
return
static::SUPPORTED_ENTITY_TYPE_PAYMENT;
67
}
68
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\NotImplementedException
Definition
exception.php:147
Bitrix\Sale\Cashbox\SellCheck
Definition
sellcheck.php:15
Bitrix\Sale\Cashbox\SellReturnCheck
Definition
sellreturncheck.php:15
Bitrix\Sale\Cashbox\SellReturnCheck\extractDataInternal
extractDataInternal()
Definition
sellreturncheck.php:44
Bitrix\Sale\Cashbox\SellReturnCheck\getType
static getType()
Definition
sellreturncheck.php:19
Bitrix\Sale\Cashbox\SellReturnCheck\getSupportedEntityType
static getSupportedEntityType()
Definition
sellreturncheck.php:64
Bitrix\Sale\Cashbox\SellReturnCheck\getName
static getName()
Definition
sellreturncheck.php:36
Bitrix\Sale\Cashbox\SellReturnCheck\getCalculatedSign
static getCalculatedSign()
Definition
sellreturncheck.php:28
Bitrix\Sale\Cashbox
Definition
abstractcheck.php:3
modules
sale
lib
cashbox
sellreturncheck.php
Создано системой
1.10.0