Skip to content

Commit 6233637

Browse files
authored
1 parent 5a8cae1 commit 6233637

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/code/Magento/Bundle/Pricing/Price/ConfiguredPrice.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ public function __construct(
8686
}
8787

8888
/**
89+
* Set item to the model
90+
*
8991
* @param ItemInterface $item
9092
* @return $this
9193
*/
@@ -155,7 +157,10 @@ public function getValue()
155157
{
156158
if ($this->item && $this->item->getProduct()->getId()) {
157159
$configuredOptionsAmount = $this->getConfiguredAmount()->getBaseAmount();
158-
return parent::getValue() + $this->discountCalculator->calculateDiscount($this->item->getProduct(), $configuredOptionsAmount);
160+
return parent::getValue() + $this->discountCalculator->calculateDiscount(
161+
$this->item->getProduct(),
162+
$configuredOptionsAmount
163+
);
159164
}
160165
return parent::getValue();
161166
}

0 commit comments

Comments
 (0)