Skip to content

Commit d46a076

Browse files
wojteknmageprince
authored andcommitted
Fix negative credit memo bug caused by credit memo discount total calculator
1 parent 8fdae10 commit d46a076

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 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']);

0 commit comments

Comments
 (0)