Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
sellreturncheck.php
1<?php
2
3namespace Bitrix\Sale\Cashbox;
4
7
8Loc::loadMessages(__FILE__);
9
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}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29