File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
app/code/Magento/Sales/Model/Order Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -445,10 +445,6 @@ public function cancel()
445
445
$ order ->setBaseDiscountInvoiced ($ order ->getBaseDiscountInvoiced () - $ this ->getBaseDiscountAmount ());
446
446
$ order ->setBaseTotalInvoicedCost ($ order ->getBaseTotalInvoicedCost () - $ this ->getBaseCost ());
447
447
448
- if ($ this ->getState () == self ::STATE_PAID ) {
449
- $ order ->setTotalPaid ($ order ->getTotalPaid () - $ this ->getGrandTotal ());
450
- $ order ->setBaseTotalPaid ($ order ->getBaseTotalPaid () - $ this ->getBaseGrandTotal ());
451
- }
452
448
$ this ->setState (self ::STATE_CANCELED );
453
449
$ order ->setState (\Magento \Sales \Model \Order::STATE_PROCESSING )
454
450
->setStatus ($ order ->getConfig ()->getStateDefaultStatus (\Magento \Sales \Model \Order::STATE_PROCESSING ));
You can’t perform that action at this time.
0 commit comments