File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Tax/Block/Sales/Order Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ protected function _addTax($after = 'discount')
107
107
$ taxTotal = new \Magento \Framework \DataObject (['code ' => 'tax ' , 'block_name ' => $ this ->getNameInLayout ()]);
108
108
$ totals = $ this ->getParentBlock ()->getTotals ();
109
109
if ($ totals ['grand_total ' ]) {
110
- $ this ->getParentBlock ()->addTotalBefore ($ taxTotal , 'grand_total ' );
110
+ $ this ->getParentBlock ()->addTotal ($ taxTotal , 'grand_total ' );
111
111
}
112
112
$ this ->getParentBlock ()->addTotal ($ taxTotal , $ after );
113
113
return $ this ;
@@ -320,7 +320,7 @@ protected function _initGrandTotal()
320
320
]
321
321
);
322
322
$ parent ->addTotal ($ totalExcl , 'grand_total ' );
323
- $ parent ->addTotal ($ totalIncl , 'tax ' );
323
+ $ parent ->addTotal ($ totalIncl , 'grand_total ' );
324
324
$ this ->_addTax ('grand_total ' );
325
325
}
326
326
return $ this ;
You can’t perform that action at this time.
0 commit comments