Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
paymentitemshipment.php
1<?php
2
4
7
9{
10 public function getFields()
11 {
12 return [
13 'ID'=>[
14 'TYPE'=>DataType::TYPE_INT,
15 'ATTRIBUTES'=>[Attributes::READONLY]
16 ],
17 'PAYMENT_ID'=>[
18 'TYPE'=>DataType::TYPE_INT,
19 'ATTRIBUTES'=>[
20 Attributes::REQUIRED,
21 Attributes::IMMUTABLE
22 ]
23 ],
24 'SHIPMENT_ID'=>[
25 'TYPE'=>DataType::TYPE_INT,
26 'ATTRIBUTES'=>[
27 Attributes::REQUIRED,
28 Attributes::IMMUTABLE
29 ]
30 ],
31 'XML_ID'=>[
32 'TYPE'=>DataType::TYPE_STRING
33 ],
34 'DATE_INSERT'=>[
35 'TYPE'=>DataType::TYPE_DATETIME,
36 'ATTRIBUTES'=>[Attributes::READONLY]
37 ]
38 ];
39 }
40
41 protected function getRewriteFields(): array
42 {
43 return [
44 'SHIPMENT_ID'=>[
45 'REFERENCE_FIELD'=>'ENTITY_ID'
46 ]
47 ];
48 }
49}