We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e9eeaa0 + 2acbd8a commit 8937e8dCopy full SHA for 8937e8d
app/code/Magento/SampleData/Module/Sales/Setup/Order/Processor.php
@@ -270,10 +270,6 @@ protected function refundOrder(\Magento\Sales\Model\Order\Item $orderItem)
270
if ($creditmemo && $creditmemo->isValidGrandTotal()) {
271
$creditmemo->setOfflineRequested(true);
272
$this->creditmemoManagement->refund($creditmemo, true);
273
- $creditmemoTransaction = $this->transactionFactory->create()
274
- ->addObject($creditmemo)
275
- ->addObject($creditmemo->getOrder());
276
- $creditmemoTransaction->save();
277
}
278
279
0 commit comments