Skip to content

Commit 14b3fdb

Browse files
committed
chore: fix the tax calculation in order transformation
1 parent c5d2acc commit 14b3fdb

File tree

1 file changed

+2
-2
lines changed
  • src/app/code/community/Zendesk/Zendesk/Helper

1 file changed

+2
-2
lines changed

src/app/code/community/Zendesk/Zendesk/Helper/Data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ public function getOrderDetailBasic($order)
541541
'name' => $order->getStoreName()
542542
),
543543
'display_price' => array(
544-
'with_tax' => $this->formatPrice($order->getGrandTotal() + $order->getTaxAmount(), $currency),
545-
'without_tax' => $this->formatPrice($order->getGrandTotal(), $currency),
544+
'with_tax' => $this->formatPrice($order->getGrandTotal(), $currency),
545+
'without_tax' => $this->formatPrice($order->getGrandTotal() - $order->getTaxAmount(), $currency),
546546
'tax' => $this->formatPrice($order->getTaxAmount(), $currency)
547547
),
548548
'timestamps' => array(

0 commit comments

Comments
 (0)