Skip to content

Commit

Permalink
Merge pull request #131 from bold-commerce/Q1-486
Browse files Browse the repository at this point in the history
Q1-486: M2.3 - DI compilation fix.
  • Loading branch information
p-bystritsky authored Sep 7, 2023
2 parents 7dc7f9d + 12d58e9 commit b47bc9c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private function calculateDiscountBreakdown(
'base_original_amount' => $discountData->getBaseOriginalAmount()
];
$itemDiscount = $this->discountDataInterfaceFactory->create(['data' => $data]);
$ruleLabel = $rule->getStoreLabel($address->getQuote()->getStore()) ?: __('Discount');
$ruleLabel = $rule->getCouponCode() ?: __('Discount');
$data = [
'discount' => $itemDiscount,
'rule' => $ruleLabel,
Expand Down Expand Up @@ -242,7 +242,7 @@ private function aggregateDiscountBreakdown(
Rule $rule,
Address $address
): void {
$ruleLabel = $rule->getStoreLabel($address->getQuote()->getStore()) ?: __('Discount');
$ruleLabel = $rule->getCouponCode() ?: __('Discount');
/** @var RuleDiscountInterface[] $discounts */
$discounts = [];
foreach ((array) $item->getExtensionAttributes()->getBoldDiscounts() as $discount) {
Expand Down

0 comments on commit b47bc9c

Please sign in to comment.