Skip to content

Commit 0e1a62e

Browse files
ENGCOM-3939: [Backport] Fix negative credit memo #19899 #20508
- Merge Pull Request #20508 from mageprince/magento2:2.2-develop-PR-port-19900 - Merged commits: 1. d46a076 2. c830d61
2 parents d8ec98c + c830d61 commit 0e1a62e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/Magento/Sales/Model/Order/CreditmemoFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ protected function initData($creditmemo, $data)
200200
{
201201
if (isset($data['shipping_amount'])) {
202202
$creditmemo->setBaseShippingAmount((double)$data['shipping_amount']);
203+
$creditmemo->setBaseShippingInclTax((double)$data['shipping_amount']);
203204
}
204205
if (isset($data['adjustment_positive'])) {
205206
$creditmemo->setAdjustmentPositive($data['adjustment_positive']);
@@ -210,6 +211,8 @@ protected function initData($creditmemo, $data)
210211
}
211212

212213
/**
214+
* Calculate product options.
215+
*
213216
* @param Item $orderItem
214217
* @param int $parentQty
215218
* @return int

0 commit comments

Comments
 (0)