Skip to content

Commit adcbfdd

Browse files
Fixed issue with full tax summary
1 parent 928e966 commit adcbfdd

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Tax/Block/Sales/Order

1 file changed

+2
-2
lines changed

app/code/Magento/Tax/Block/Sales/Order/Tax.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected function _addTax($after = 'discount')
107107
$taxTotal = new \Magento\Framework\DataObject(['code' => 'tax', 'block_name' => $this->getNameInLayout()]);
108108
$totals = $this->getParentBlock()->getTotals();
109109
if ($totals['grand_total']) {
110-
$this->getParentBlock()->addTotalBefore($taxTotal, 'grand_total');
110+
$this->getParentBlock()->addTotal($taxTotal, 'grand_total');
111111
}
112112
$this->getParentBlock()->addTotal($taxTotal, $after);
113113
return $this;
@@ -320,7 +320,7 @@ protected function _initGrandTotal()
320320
]
321321
);
322322
$parent->addTotal($totalExcl, 'grand_total');
323-
$parent->addTotal($totalIncl, 'tax');
323+
$parent->addTotal($totalIncl, 'grand_total');
324324
$this->_addTax('grand_total');
325325
}
326326
return $this;

0 commit comments

Comments
 (0)