Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sellreturncashcheck.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
SellReturnCashCheck
extends
SellCheck
15
{
19
public
static
function
getType
()
20
{
21
return
'sellreturncash'
;
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_CASH_NAME'
);
39
}
40
41
45
protected
function
extractDataInternal
()
46
{
47
$result = parent::extractDataInternal();
48
49
if
(isset($result[
'PAYMENTS'
]))
50
{
51
foreach
($result[
'PAYMENTS'
] as $i => $payment)
52
{
53
$result[
'PAYMENTS'
][$i][
'IS_CASH'
] =
'Y'
;
54
$result[
'PAYMENTS'
][$i][
'TYPE'
] = static::PAYMENT_TYPE_CASH;
55
}
56
57
}
58
59
return
$result;
60
}
61
65
public
static
function
getSupportedEntityType
()
66
{
67
return
static::SUPPORTED_ENTITY_TYPE_PAYMENT;
68
}
69
}
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\SellReturnCashCheck
Definition
sellreturncashcheck.php:15
Bitrix\Sale\Cashbox\SellReturnCashCheck\extractDataInternal
extractDataInternal()
Definition
sellreturncashcheck.php:45
Bitrix\Sale\Cashbox\SellReturnCashCheck\getType
static getType()
Definition
sellreturncashcheck.php:19
Bitrix\Sale\Cashbox\SellReturnCashCheck\getSupportedEntityType
static getSupportedEntityType()
Definition
sellreturncashcheck.php:65
Bitrix\Sale\Cashbox\SellReturnCashCheck\getName
static getName()
Definition
sellreturncashcheck.php:36
Bitrix\Sale\Cashbox\SellReturnCashCheck\getCalculatedSign
static getCalculatedSign()
Definition
sellreturncashcheck.php:28
Bitrix\Sale\Cashbox
Definition
abstractcheck.php:3
modules
sale
lib
cashbox
sellreturncashcheck.php
Создано системой
1.10.0