1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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\Sale\Cashbox\SellCheck
Определения
sellcheck.php:15
Bitrix\Sale\Cashbox\SellReturnCheck
Определения
sellreturncheck.php:15
Bitrix\Sale\Cashbox\SellReturnCheck\extractDataInternal
extractDataInternal()
Определения
sellreturncheck.php:44
Bitrix\Sale\Cashbox\SellReturnCheck\getType
static getType()
Определения
sellreturncheck.php:19
Bitrix\Sale\Cashbox\SellReturnCheck\getSupportedEntityType
static getSupportedEntityType()
Определения
sellreturncheck.php:64
Bitrix\Sale\Cashbox\SellReturnCheck\getName
static getName()
Определения
sellreturncheck.php:36
Bitrix\Sale\Cashbox\SellReturnCheck\getCalculatedSign
static getCalculatedSign()
Определения
sellreturncheck.php:28
$result
$result
Определения
get_property_values.php:14
$payment
$payment
Определения
payment.php:14
$i
$i
Определения
factura.php:643
bitrix
modules
sale
lib
cashbox
sellreturncheck.php
Создано системой
1.14.0