Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
cashbox.php
1<?php
3
4use Bitrix\Main\Entity\DataManager;
7
8Loc::loadMessages(__FILE__);
9
28{
32 public static function getTableName()
33 {
34 return 'b_sale_cashbox';
35 }
36
40 public static function getMap()
41 {
42 return array(
43 'ID' => array(
44 'primary' => true,
45 'data_type' => 'integer',
46 'title' => Loc::getMessage('SALE_CASHBOX_ENTITY_ID_FIELD'),
47 ),
48 'NAME' => array(
49 'data_type' => 'string',
50 'required' => true,
51 'title' => Loc::getMessage('SALE_CASHBOX_ENTITY_NAME_FIELD'),
52 ),
53 'ACTIVE' => array(
54 'data_type' => 'boolean',
55 'values' => array('N', 'Y'),
56 'title' => Loc::getMessage('SALE_CASHBOX_ENTITY_ACTIVE_FIELD'),
57 ),
58 'HANDLER' => array(
59 'data_type' => 'string',
60 'required' => true,
61 'title' => Loc::getMessage('SALE_CASHBOX_ENTITY_HANDLER_FIELD'),
62 ),
63 'EMAIL' => array(
64 'data_type' => 'string',
65 'required' => true,
66 'title' => Loc::getMessage('SALE_CASHBOX_ENTITY_EMAIL_FIELD'),
67 ),
68 'SORT' => array(
69 'data_type' => 'integer',
70 'title' => Loc::getMessage('SALE_CASHBOX_ENTITY_SORT_FIELD'),
71 ),
72 'DATE_CREATE' => array(
73 'data_type' => 'datetime',
74 'default_value' => new DateTime(),
75 'title' => Loc::getMessage('SALE_CASHBOX_ENTITY_DATE_CREATE_FIELD'),
76 ),
77 'DATE_LAST_CHECK' => array(
78 'data_type' => 'datetime',
79 'title' => Loc::getMessage('SALE_CASHBOX_ENTITY_DATE_LAST_CHECK_FIELD'),
80 ),
81 'KKM_ID' => array(
82 'data_type' => 'string',
83 'title' => Loc::getMessage('SALE_CASHBOX_ENTITY_KKM_ID_FIELD'),
84 ),
85 'OFD' => array(
86 'data_type' => 'string',
87 'title' => Loc::getMessage('SALE_CASHBOX_ENTITY_OFD_FIELD'),
88 ),
89 'NUMBER_KKM' => array(
90 'data_type' => 'string',
91 'title' => Loc::getMessage('SALE_CASHBOX_ENTITY_NUMBER_KKM_FIELD'),
92 ),
93 'SETTINGS' => array(
94 'data_type' => 'string',
95 'title' => Loc::getMessage('SALE_CASHBOX_ENTITY_SETTINGS_FIELD'),
96 'serialized' => true
97 ),
98 'OFD_SETTINGS' => array(
99 'data_type' => 'string',
100 'serialized' => true
101 ),
102 'USE_OFFLINE' => array(
103 'data_type' => 'boolean',
104 'title' => Loc::getMessage('SALE_CASHBOX_ENTITY_OFD_TEST_MODE_FIELD'),
105 'values' => array('N', 'Y')
106 ),
107 'ENABLED' => array(
108 'data_type' => 'boolean',
109 'title' => Loc::getMessage('SALE_CASHBOX_ENTITY_ENABLED_FIELD'),
110 'values' => array('N', 'Y')
111 ),
112 );
113 }
114
115}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29