From cfc7a4e3715f9e10763c08e9a9c0991ef7f16b91 Mon Sep 17 00:00:00 2001 From: jisse Reitsma Date: Sun, 10 Sep 2023 14:56:27 +0200 Subject: [PATCH] `currency` should never be part of an `item` #189 --- CHANGELOG.md | 3 +++ DataLayer/Mapper/OrderItemDataMapper.php | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2fa56e9..7868447e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- `currency` should never be part of an `item` #189 + ## [3.6.0] - 6 September 2023 ### Added - New event `sign_up` #185 (@samicoman) diff --git a/DataLayer/Mapper/OrderItemDataMapper.php b/DataLayer/Mapper/OrderItemDataMapper.php index e2ae93d0..24b9bdc8 100644 --- a/DataLayer/Mapper/OrderItemDataMapper.php +++ b/DataLayer/Mapper/OrderItemDataMapper.php @@ -55,7 +55,6 @@ public function mapByOrderItem(OrderItemInterface $orderItem, ?OrderInterface $o $orderItemData = [ 'item_id' => $orderItem->getSku(), 'item_name' => $orderItem->getName(), - 'currency' => $order->getOrderCurrencyCode(), 'discount' => (float) $orderItem->getDiscountAmount(), 'quantity' => (float) $orderItem->getQtyOrdered(), 'price' => $this->getPrice($orderItem)