Skip to content

Commit

Permalink
Merge pull request #59 from elgentos/update-whitelist-db
Browse files Browse the repository at this point in the history
Update whitelist db
  • Loading branch information
WouterSteen authored Jul 5, 2024
2 parents 8f3de95 + aa76a0b commit c5bdc02
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Observer/SendPurchaseEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ public function sendPurchaseEvent(GAClient $gaclient, DataObject $transactionDat
*/
private function getPaidProductPrice(\Magento\Sales\Model\Order\Item $orderItem)
{
return $this->scopeConfig->getValue('tax/display/type') == \Magento\Tax\Model\Config::DISPLAY_TYPE_EXCLUDING_TAX
? $orderItem->getBasePrice()
: $orderItem->getBasePriceInclTax();
return $this->scopeConfig->getValue('tax/display/type') === \Magento\Tax\Model\Config::DISPLAY_TYPE_INCLUDING_TAX
? $orderItem->getBasePriceInclTax()
: $orderItem->getBasePrice();
}

/**
Expand All @@ -216,8 +216,8 @@ private function getPaidProductPrice(\Magento\Sales\Model\Order\Item $orderItem)
*/
private function getPaidShippingCosts(\Magento\Sales\Model\Order\Invoice $invoice)
{
return $this->scopeConfig->getValue('tax/display/type') == \Magento\Tax\Model\Config::DISPLAY_TYPE_EXCLUDING_TAX
? $invoice->getBaseShippingAmount()
: $invoice->getBaseShippingInclTax();
return $this->scopeConfig->getValue('tax/display/type') == \Magento\Tax\Model\Config::DISPLAY_TYPE_INCLUDING_TAX
? $invoice->getBaseShippingInclTax()
: $invoice->getBaseShippingAmount();
}
}

0 comments on commit c5bdc02

Please sign in to comment.