File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed
view/adminhtml/web/js/components
Catalog/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -500,7 +500,8 @@ private function getTierPriceStructure($tierPricePath)
500
500
'validation ' => [
501
501
'required-entry ' => true ,
502
502
'validate-greater-than-zero ' => true ,
503
- 'validate-digits ' => true ,
503
+ 'validate-digits ' => false ,
504
+ 'validate-number ' => true ,
504
505
],
505
506
],
506
507
],
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ protected function customizeAdvancedPriceFormat(array $data)
122
122
$ value [ProductAttributeInterface::CODE_TIER_PRICE_FIELD_PRICE ] =
123
123
$ this ->formatPrice ($ value [ProductAttributeInterface::CODE_TIER_PRICE_FIELD_PRICE ]);
124
124
$ value [ProductAttributeInterface::CODE_TIER_PRICE_FIELD_PRICE_QTY ] =
125
- (int ) $ value [ProductAttributeInterface::CODE_TIER_PRICE_FIELD_PRICE_QTY ];
125
+ (float ) $ value [ProductAttributeInterface::CODE_TIER_PRICE_FIELD_PRICE_QTY ];
126
126
}
127
127
}
128
128
Original file line number Diff line number Diff line change 11
11
use Magento \CatalogInventory \Api \Data \StockItemInterface ;
12
12
use Magento \CatalogInventory \Api \Data \StockItemInterfaceFactory ;
13
13
use Magento \CatalogInventory \Api \StockConfigurationInterface ;
14
- use Magento \CatalogInventory \Api \StockItemRepositoryInterface as StockItemRepositoryInterface ;
14
+ use Magento \CatalogInventory \Api \StockItemRepositoryInterface ;
15
15
use Magento \CatalogInventory \Model \Indexer \Stock \Processor ;
16
16
use Magento \CatalogInventory \Model \ResourceModel \Stock \Item as StockItemResource ;
17
17
use Magento \CatalogInventory \Model \Spi \StockStateProviderInterface ;
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ define([
20
20
var isDigits = value !== 1 ;
21
21
22
22
this . validation [ 'validate-integer' ] = isDigits ;
23
+ this . validation [ 'validate-digits' ] = isDigits ;
23
24
this . validation [ 'less-than-equals-to' ] = isDigits ? 99999999 : 99999999.9999 ;
24
25
this . validate ( ) ;
25
26
}
You can’t perform that action at this time.
0 commit comments