discountFactory->create(); $store = $item->getQuote()->getStore(); $itemPrice = $this->validator->getItemPrice($item); $baseItemPrice = $this->validator->getItemBasePrice($item); $itemOriginalPrice = $this->validator->getItemOriginalPrice($item); $baseItemOriginalPrice = $this->validator->getItemBaseOriginalPrice($item); $quoteAmount = $this->priceCurrency->convert($rule->getDiscountAmount(), $store); $discountData->setAmount($qty * ($itemPrice - $quoteAmount)); $discountData->setBaseAmount($qty * ($baseItemPrice - $rule->getDiscountAmount())); $discountData->setOriginalAmount($qty * ($itemOriginalPrice - $quoteAmount)); $discountData->setBaseOriginalAmount($qty * ($baseItemOriginalPrice - $rule->getDiscountAmount())); return $discountData; } }