Skip to content

Commit d3e576f

Browse files
Oleksii KorshenkoRus0
andauthored
Update app/code/Magento/Sales/Model/Order/Creditmemo/Total/Discount.php
Co-Authored-By: Rus0 <[email protected]>
1 parent b02dbc6 commit d3e576f

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Sales/Model/Order/Creditmemo/Total

1 file changed

+1
-1
lines changed

app/code/Magento/Sales/Model/Order/Creditmemo/Total/Discount.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function collect(\Magento\Sales\Model\Order\Creditmemo $creditmemo)
3232
* If credit memo's shipping amount is set and Order's shipping amount is 0,
3333
* throw exception with different message
3434
*/
35-
if ( $baseShippingAmount && $order->getBaseShippingAmount() <= 0 ) {
35+
if ($baseShippingAmount && $order->getBaseShippingAmount() <= 0) {
3636
throw new \Magento\Framework\Exception\LocalizedException(
3737
new \Magento\Framework\Phrase("You can not refund shipping if there is no shipping amount.",[])
3838
);

0 commit comments

Comments
 (0)