Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
prepaymentreturncashcheck.php
1<?php
2
3namespace Bitrix\Sale\Cashbox;
4
6Main\Localization\Loc::loadMessages(__FILE__);
7
13{
17 public static function getType()
18 {
19 return 'prepaymentreturncash';
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_CASH_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'] = 'Y';
51 $result['PAYMENTS'][$i]['TYPE'] = static::PAYMENT_TYPE_CASH;
52 }
53
54 }
55
56 return $result;
57 }
58}