24 'type' => Grid\Column\Type::DROPDOWN,
38 $result[
'AVAILABLE'] = [
39 'type' => Grid\Column\Type::CHECKBOX,
41 'title' =>
Loc::getMessage(
'PRODUCT_COLUMN_PROVIDER_FIELD_TITLE_AVAILABLE'),
45 'sort' =>
'AVAILABLE',
51 $result[
'PRODUCT'] = [
52 'type' => Grid\Column\Type::CUSTOM,
54 'title' =>
Loc::getMessage(
'PRODUCT_COLUMN_PROVIDER_FIELD_TITLE_PRODUCT'),
66 $result[
'PRODUCT'] = [
67 'type' => Grid\Column\Type::TEXT,
69 'title' =>
Loc::getMessage(
'PRODUCT_COLUMN_PROVIDER_FIELD_TITLE_PRODUCT'),
75 $result = array_merge(
143 $useInventoryManagment = Catalog\Config\State::isUsedInventoryManagement();
147 if (static::allowedShowQuantityColumns())
149 $result[
'QUANTITY'] = [
150 'type' => Grid\Column\Type::FLOAT,
151 'name' =>
Loc::getMessage(
'PRODUCT_COLUMN_PROVIDER_FIELD_PRODUCT_QUANTITY'),
152 'necessary' =>
false,
153 'editable' => $allowProductEdit && !$useInventoryManagment,
155 'sort' => $useSkuSelector || static::needSummaryStoreAmountByPermissions() ? null :
'QUANTITY',
159 $result[
'QUANTITY_RESERVED'] = [
160 'type' => Grid\Column\Type::FLOAT,
161 'name' =>
Loc::getMessage(
'PRODUCT_COLUMN_PROVIDER_FIELD_PRODUCT_QUANTITY_RESERVED'),
162 'necessary' =>
false,
163 'editable' => $allowProductEdit && !$useInventoryManagment,
170 $result[
'MEASURE'] = [
171 'type' => Grid\Column\Type::DROPDOWN,
173 'title' =>
Loc::getMessage(
'PRODUCT_COLUMN_PROVIDER_FIELD_TITLE_MEASURE'),
174 'necessary' =>
false,
175 'editable' => $allowProductEdit ? $this->getMeasureEditable() :
false,
177 'sort' => $useSkuSelector ? null :
'MEASURE',
181 $result[
'QUANTITY_TRACE'] = [
182 'type' => Grid\Column\Type::CHECKBOX,
183 'name' =>
Loc::getMessage(
'PRODUCT_COLUMN_PROVIDER_FIELD_QUANTITY_TRACE'),
184 'title' =>
Loc::getMessage(
'PRODUCT_COLUMN_PROVIDER_FIELD_TITLE_QUANTITY_TRACE'),
185 'necessary' =>
false,
186 'editable' => $allowProductEdit,
192 $result[
'CAN_BUY_ZERO'] = [
193 'type' => Grid\Column\Type::CHECKBOX,
194 'name' =>
Loc::getMessage(
'PRODUCT_COLUMN_PROVIDER_FIELD_CAN_BUY_ZERO'),
195 'title' =>
Loc::getMessage(
'PRODUCT_COLUMN_PROVIDER_FIELD_TITLE_CAN_BUY_ZERO'),
196 'necessary' =>
false,
197 'editable' => $allowProductEdit,
213 $result[
'WEIGHT'] = [
214 'type' => Grid\Column\Type::FLOAT,
216 'necessary' =>
false,
217 'editable' => $allowProductEdit,
219 'sort' => $useSkuSelector ? null :
'WEIGHT',
224 'type' => Grid\Column\Type::FLOAT,
226 'necessary' =>
false,
227 'editable' => $allowProductEdit,
229 'sort' => $useSkuSelector ? null :
'WIDTH',
233 $result[
'LENGTH'] = [
234 'type' => Grid\Column\Type::FLOAT,
236 'necessary' =>
false,
237 'editable' => $allowProductEdit,
239 'sort' => $useSkuSelector ? null :
'LENGTH',
243 $result[
'HEIGHT'] = [
244 'type' => Grid\Column\Type::FLOAT,
246 'necessary' =>
false,
247 'editable' => $allowProductEdit,
249 'sort' => $useSkuSelector ? null :
'HEIGHT',