Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
prepaymentreturncheck.php
1<?php
2
3namespace Bitrix\Sale\Cashbox;
4
6Main\Localization\Loc::loadMessages(__FILE__);
7
13{
17 public static function getType()
18 {
19 return 'prepaymentreturn';
20 }
21
26 public static function getCalculatedSign()
27 {
28 return static::CALCULATED_SIGN_CONSUMPTION;
29 }
30
34 public static function getName()
35 {
36 return Main\Localization\Loc::getMessage('SALE_CASHBOX_PREPAYMENT_RETURN_NAME');
37 }
38
42 protected function extractDataInternal()
43 {
44 $result = parent::extractDataInternal();
45
46 if (isset($result['PAYMENTS']))
47 {
48 foreach ($result['PAYMENTS'] as $i => $payment)
49 {
50 $result['PAYMENTS'][$i]['IS_CASH'] = 'N';
51 $result['PAYMENTS'][$i]['TYPE'] = static::PAYMENT_TYPE_CASHLESS;
52 }
53
54 }
55
56 return $result;
57 }
58}