-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Tiered pricing and quantity Increments do not work with decimal inventory MAGETWO-86164 (both front-end and back-end) #13359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ public function __construct( | |
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please, revert this changes. Just remove curly braces for static test. |
||
* @inheritdoc | ||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength) | ||
*/ | ||
public function modifyMeta(array $meta) | ||
|
@@ -220,7 +220,8 @@ private function removeFixedTierPrice(array $meta) | |
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
* @param array $data | ||
* @return array | ||
*/ | ||
public function modifyData(array $data) | ||
{ | ||
|
@@ -377,6 +378,7 @@ protected function getBundleOptions() | |
'selection_price_type' => '', | ||
'selection_price_value' => '', | ||
'selection_qty' => '', | ||
'selection_qty_is_integer' => 'selection_qty_is_integer', | ||
], | ||
'links' => ['insertData' => '${ $.provider }:${ $.dataProvider }'], | ||
'imports' => [ | ||
|
@@ -682,10 +684,11 @@ protected function getBundleSelections() | |
'validation' => [ | ||
'required-entry' => true, | ||
'validate-number' => true, | ||
'validate-digits' => true, | ||
'validate-greater-than-zero' => true | ||
], | ||
'imports' => [ | ||
'isInteger' => '${ $.provider }:${ $.parentScope }.selection_qty_is_integer' | ||
'validateDigits' => '${ $.provider }:${ $.parentScope }.selection_qty_is_integer', | ||
], | ||
], | ||
], | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,10 @@ | |
*/ | ||
namespace Magento\Bundle\Ui\DataProvider\Product\Form\Modifier; | ||
|
||
use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AbstractModifier; | ||
use Magento\Catalog\Api\Data\ProductAttributeInterface; | ||
use Magento\Framework\Stdlib\ArrayManager; | ||
use Magento\Catalog\Model\Locator\LocatorInterface; | ||
use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AbstractModifier; | ||
use Magento\Framework\Stdlib\ArrayManager; | ||
|
||
/** | ||
* Customize Price field | ||
|
@@ -41,7 +41,7 @@ public function __construct( | |
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please, revert this changes. Just remove curly braces for static test. |
||
* @inheritdoc | ||
*/ | ||
public function modifyMeta(array $meta) | ||
{ | ||
|
@@ -94,7 +94,8 @@ public function modifyMeta(array $meta) | |
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
* @param array $data | ||
* @return array | ||
*/ | ||
public function modifyData(array $data) | ||
{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,13 @@ | |
*/ | ||
namespace Magento\Bundle\Ui\DataProvider\Product\Form\Modifier; | ||
|
||
use Magento\Bundle\Api\ProductOptionRepositoryInterface; | ||
use Magento\Bundle\Model\Product\Type; | ||
use Magento\Catalog\Api\ProductRepositoryInterface; | ||
use Magento\Catalog\Model\Locator\LocatorInterface; | ||
use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AbstractModifier; | ||
use Magento\Framework\ObjectManagerInterface; | ||
use Magento\Ui\DataProvider\Modifier\ModifierInterface; | ||
use Magento\Bundle\Model\Product\Type; | ||
use Magento\Bundle\Api\ProductOptionRepositoryInterface; | ||
use Magento\Catalog\Api\ProductRepositoryInterface; | ||
|
||
/** | ||
* Class Bundle customizes Bundle product creation flow | ||
|
@@ -67,7 +67,7 @@ public function __construct( | |
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please, revert this changes. Just remove curly braces for static test. |
||
* @inheritdoc | ||
*/ | ||
public function modifyMeta(array $meta) | ||
{ | ||
|
@@ -87,7 +87,8 @@ public function modifyMeta(array $meta) | |
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
* @param array $data | ||
* @return array | ||
* @SuppressWarnings(PHPMD.CyclomaticComplexity) | ||
* @SuppressWarnings(PHPMD.NPathComplexity) | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the duplicate parameter declaration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, that is not a duplicated declaration. They are different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, my bad, you are absolutely right!