Skip to content

Commit

Permalink
Remove tax subtotal from order causing inconsistent tax sum
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixDev - JJ committed Oct 10, 2017
1 parent 25009f3 commit e928646
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Block/Totals/CashOnDeliveryTax.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ public function initTotals()
$parent = $this->getParentBlock();
$this->source = $parent->getSource();

if (!$this->helper->isActiveMethod($this->source)) {
if (
!$this->helper->isActiveMethod($this->source) ||
$this->source instanceof Order
) {
return $this;
}

Expand Down

0 comments on commit e928646

Please sign in to comment.