/
quote-data-group-list.php
149 lines (149 loc) · 4.25 KB
/
quote-data-group-list.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?php
// created: 2021-09-17 17:19:19
$viewdefs['Products']['base']['view']['quote-data-group-list'] = array (
'panels' =>
array (
0 =>
array (
'name' => 'products_quote_data_group_list',
'label' => 'LBL_PRODUCTS_QUOTE_DATA_LIST',
'fields' =>
array (
0 =>
array (
'name' => 'line_num',
'label' => NULL,
'widthClass' => 'cell-xsmall',
'css_class' => 'line_num tcenter',
'type' => 'line-num',
'readonly' => true,
),
1 =>
array (
'id_name' => 'manufacturer_id',
'label' => 'LBL_MANUFACTURER_NAME',
'labelModule' => 'Products',
'name' => 'manufacturer_id',
'type' => 'enum-api',
'api' => 'Products/manufacturers',
),
2 =>
array (
'label' => 'LBL_CATEGORY_NAME',
'id_name' => 'category_id',
'labelModule' => 'Products',
'name' => 'category_id',
'type' => 'enum-parent-api',
'api' => 'Products/categories/',
'parent' => 'manufacturer_id',
),
3 =>
array (
'label' => 'LBL_PRODUCT_TEMPLATE',
'labelModule' => 'Products',
'widthClass' => 'cell-large',
'required' => true,
'related_fields' =>
array (
0 => 'service',
1 => 'service_start_date',
2 => 'service_end_date',
3 => 'renewable',
4 => 'service_duration_value',
5 => 'service_duration_unit',
),
'name' => 'product_template_id',
'type' => 'enum-mult-parent-api',
'api' => 'Products/templates',
'parents' =>
array (
'manufacturer_id' => 'manufacturer_id',
'category_id' => 'category_id',
),
),
4 =>
array (
'name' => 'quantity',
'label' => 'LBL_QUANTITY',
'labelModule' => 'Products',
'widthClass' => 'cell-small',
'css_class' => 'quantity',
'type' => 'float',
),
5 =>
array (
'name' => 'mft_part_num',
'label' => 'LBL_MFT_PART_NUM',
'labelModule' => 'Products',
'type' => 'base',
),
6 =>
array (
'name' => 'discount_price',
'label' => 'LBL_DISCOUNT_PRICE',
'labelModule' => 'Products',
'type' => 'currency',
'convertToBase' => true,
'showTransactionalAmount' => true,
'related_fields' =>
array (
0 => 'discount_price',
1 => 'currency_id',
2 => 'base_rate',
),
),
7 =>
array (
'name' => 'discount_field',
'type' => 'fieldset',
'css_class' => 'discount-field quote-discount-percent',
'label' => 'LBL_DISCOUNT_AMOUNT',
'labelModule' => 'Products',
'show_child_labels' => false,
'sortable' => false,
'fields' =>
array (
0 =>
array (
'name' => 'discount_amount',
'label' => 'LBL_DISCOUNT_AMOUNT',
'type' => 'discount-amount',
'discountFieldName' => 'discount_select',
'related_fields' =>
array (
0 => 'currency_id',
),
'convertToBase' => true,
'base_rate_field' => 'base_rate',
'showTransactionalAmount' => true,
),
1 =>
array (
'type' => 'discount-select',
'name' => 'discount_select',
'options' =>
array (
),
'label' => 'LBL_DISCOUNT_AS_PERCENT',
),
),
),
8 =>
array (
'name' => 'total_amount',
'label' => 'LBL_LINE_ITEM_TOTAL',
'labelModule' => 'Quotes',
'type' => 'currency',
'widthClass' => 'cell-medium',
'showTransactionalAmount' => true,
'related_fields' =>
array (
0 => 'total_amount',
1 => 'currency_id',
2 => 'base_rate',
),
),
),
),
),
);