Skip to content

Commit

Permalink
🐛 Fix SALES_ORDER_TAX_ITEM_TAX_ID_ITEM_ID duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarcel committed Feb 27, 2017
1 parent 24b1a24 commit a3ce1bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Tax/Model/Plugin/OrderSave.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ protected function saveOrderTax(\Magento\Sales\Api\Data\OrderInterface $order)

if (isset($ratesIdQuoteItemId[$id])) {
foreach ($ratesIdQuoteItemId[$id] as $quoteItemId) {
if ($quoteItemId['code'] == $tax['code']) {
if ($quoteItemId['code'] === $tax['code']) {
$itemId = null;
$associatedItemId = null;
if (isset($quoteItemId['id'])) {
Expand Down

0 comments on commit a3ce1bc

Please sign in to comment.