Skip to content

Commit 8937e8d

Browse files
author
Klymenko, Volodymyr(vklymenko)
committed
Merge pull request magento#46 from magento-dragons/MAGETWO-42891
MAGETWO-42891: [Sample Data] Negative values on dashboard
2 parents e9eeaa0 + 2acbd8a commit 8937e8d

File tree

1 file changed

+0
-4
lines changed
  • app/code/Magento/SampleData/Module/Sales/Setup/Order

1 file changed

+0
-4
lines changed

app/code/Magento/SampleData/Module/Sales/Setup/Order/Processor.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,6 @@ protected function refundOrder(\Magento\Sales\Model\Order\Item $orderItem)
270270
if ($creditmemo && $creditmemo->isValidGrandTotal()) {
271271
$creditmemo->setOfflineRequested(true);
272272
$this->creditmemoManagement->refund($creditmemo, true);
273-
$creditmemoTransaction = $this->transactionFactory->create()
274-
->addObject($creditmemo)
275-
->addObject($creditmemo->getOrder());
276-
$creditmemoTransaction->save();
277273
}
278274
}
279275

0 commit comments

Comments
 (0)