Skip to content

Commit

Permalink
ENGCOM-3720: Fix negative credit memo #19899 #19900
Browse files Browse the repository at this point in the history
  • Loading branch information
sidolov authored Jan 3, 2019
2 parents a1de10d + f846f72 commit c8df3c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/code/Magento/Sales/Model/Order/CreditmemoFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ protected function initData($creditmemo, $data)
{
if (isset($data['shipping_amount'])) {
$creditmemo->setBaseShippingAmount((double)$data['shipping_amount']);
$creditmemo->setBaseShippingInclTax((double)$data['shipping_amount']);
}
if (isset($data['adjustment_positive'])) {
$creditmemo->setAdjustmentPositive($data['adjustment_positive']);
Expand All @@ -210,6 +211,8 @@ protected function initData($creditmemo, $data)
}

/**
* Calculate product options.
*
* @param Item $orderItem
* @param int $parentQty
* @return int
Expand Down

0 comments on commit c8df3c8

Please sign in to comment.