Skip to content

Commit

Permalink
Merge pull request #73 from magento-plankton/MAGETWO-80191
Browse files Browse the repository at this point in the history
[Plankton] Fixes
 - MAGETWO-80191: [2.2.x] - Fixes #10255: base_shipping_discount_tax_compensation_amnt was empty from order onwards #10435
  • Loading branch information
ishakhsuvarov authored Nov 7, 2017
2 parents b557289 + c3d3e0a commit 7ca754b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/SalesSampleData/Model/Order/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ protected function processQuote($data = [])
$orderCreateModel->getQuote()->getShippingAddress()->setShippingMethod($data['order']['shipping_method']);
$orderCreateModel->getQuote()->setTotalsCollectedFlag(false);
$orderCreateModel->collectShippingRates();
$orderCreateModel->getQuote()->getShippingAddress()->setBaseShippingDiscountTaxCompensationAmount(null);
$orderCreateModel->getQuote()->getPayment()->addData($data['payment'])->setQuote($orderCreateModel->getQuote());
return $orderCreateModel;
}
Expand Down

0 comments on commit 7ca754b

Please sign in to comment.