Skip to content

Commit 2d8404d

Browse files
committed
MAGETWO-98680: Cart Price Rule code is absent on "view Order/Invoice" Admin page if had been used for Free Shipping
1 parent bfe17d2 commit 2d8404d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Sales/Block/Adminhtml/Totals.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected function _initTotals()
7575
$this->getSource()->getShippingDescription())
7676
) {
7777
$shippingLabel = __('Shipping & Handling');
78-
if ($this->isHasFreeShipping($this->getSource()) && $this->getSource()->getDiscountDescription()) {
78+
if ($this->isHasFreeShipping($this->getOrder()) && $this->getSource()->getDiscountDescription()) {
7979
$shippingLabel .= sprintf(' (%s)', $this->getSource()->getDiscountDescription());
8080
}
8181
$this->_totals['shipping'] = new \Magento\Framework\DataObject(

0 commit comments

Comments
 (0)