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