Skip to content

Commit 0a12f2f

Browse files
committed
ENGCOM-3450: [Forwardport] Fixed tierprice discount not calculated correctly if has specialprice #19179
1 parent b6180be commit 0a12f2f

File tree

1 file changed

+7
-0
lines changed
  • app/code/Magento/Catalog/Model/Product/Attribute/Backend

1 file changed

+7
-0
lines changed

app/code/Magento/Catalog/Model/Product/Attribute/Backend/Tierprice.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
use Magento\Catalog\Model\Attribute\ScopeOverriddenValue;
1515

16+
/**
17+
* Backend model for Tierprice attribute
18+
*/
1619
class Tierprice extends \Magento\Catalog\Model\Product\Attribute\Backend\GroupPrice\AbstractGroupPrice
1720
{
1821
/**
@@ -186,6 +189,10 @@ protected function modifyPriceData($object, $data)
186189
}
187190

188191
/**
192+
* Update Price values in DB
193+
*
194+
* Updates price values in DB from array comparing to old values. Returns bool if updated
195+
*
189196
* @param array $valuesToUpdate
190197
* @param array $oldValues
191198
* @return boolean

0 commit comments

Comments
 (0)