Skip to content

Commit

Permalink
currency should never be part of an item #189
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Sep 10, 2023
1 parent af4b06d commit cfc7a4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion DataLayer/Mapper/OrderItemDataMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cfc7a4e

Please sign in to comment.