Skip to content

Commit 67dce26

Browse files
committed
MAGETWO-96016: The value Quantity of Advenced Pricing isn't saved correctly
1 parent c9a5fb2 commit 67dce26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Catalog/Model/Product/Attribute/Backend/TierPrice/AbstractHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ protected function getAdditionalFields(array $objectArray): array
5454
* Check whether price has percentage value.
5555
*
5656
* @param array $priceRow
57-
* @return int|null
57+
* @return float|null
5858
*/
59-
protected function getPercentage(array $priceRow): ?int
59+
protected function getPercentage(array $priceRow): ?float
6060
{
6161
return isset($priceRow['percentage_value']) && is_numeric($priceRow['percentage_value'])
62-
? (int)$priceRow['percentage_value']
62+
? (float)$priceRow['percentage_value']
6363
: null;
6464
}
6565

0 commit comments

Comments
 (0)