File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/code/Magento/Catalog/Controller/Adminhtml/Product/Initialization Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,11 @@ public function filter(array $stockData)
66
66
$ stockData ['min_qty ' ] = 0 ;
67
67
}
68
68
69
- if ((isset ($ stockData ['is_decimal_divided ' ]) && isset ($ stockData ['is_qty_decimal ' ])) && $ stockData ['is_qty_decimal ' ] == 0 && $ stockData ['is_decimal_divided ' ] == 1 ){
69
+ if ((isset ($ stockData ['is_decimal_divided ' ]) && isset ($ stockData ['is_qty_decimal ' ]))
70
+ && $ stockData ['is_qty_decimal ' ] == 0 && $ stockData ['is_decimal_divided ' ] == 1 ) {
71
+ // phpcs:ignore Magento2.Exceptions.DirectThrow
70
72
throw new Exception (__ ('Please select Advanced Inventory -> Qty Uses Decimals as YES. ' ));
71
- }
72
- else if (!isset ($ stockData ['is_decimal_divided ' ]) || $ stockData ['is_qty_decimal ' ] == 0 ) {
73
+ } else if (!isset ($ stockData ['is_decimal_divided ' ]) || $ stockData ['is_qty_decimal ' ] == 0 ) {
73
74
$ stockData ['is_decimal_divided ' ] = 0 ;
74
75
}
75
76
You can’t perform that action at this time.
0 commit comments