Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
advancepaymentcheck.php
1<?php
2
3namespace Bitrix\Sale\Cashbox;
4
6
7Main\Localization\Loc::loadMessages(__FILE__);
8
15{
19 public static function getType()
20 {
21 return 'advancepayment';
22 }
23
27 public static function getName()
28 {
29 return Main\Localization\Loc::getMessage('SALE_CASHBOX_ADVANCE_PAYMENT_NAME');
30 }
31
35 public static function getCalculatedSign()
36 {
37 return static::CALCULATED_SIGN_INCOME;
38 }
39
43 protected function extractDataInternal()
44 {
45 $result = parent::extractDataInternal();
46
47 unset($result['DELIVERY']);
48 $result['PRODUCTS'] = [
49 [
50 'NAME' => Main\Localization\Loc::getMessage('SALE_CASHBOX_ADVANCE_PAYMENT_ITEM_NAME'),
51 'QUANTITY' => 1,
52 'PRICE' => $result['TOTAL_SUM'],
53 'SUM' => $result['TOTAL_SUM'],
54 'BASE_PRICE' => $result['TOTAL_SUM'],
55 'PAYMENT_OBJECT' => static::PAYMENT_OBJECT_PAYMENT,
56 'CURRENCY' => $result['CURRENCY'],
57 ]
58 ];
59
60 return $result;
61 }
62
63 protected function needPrintMarkingCode($basketItem) : bool
64 {
65 return false;
66 }
67
71 public static function getSupportedRelatedEntityType()
72 {
73 return static::SUPPORTED_ENTITY_TYPE_NONE;
74 }
75
76}