File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Sales/Model/Order/Creditmemo/Total Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ public function collect(\Magento\Sales\Model\Order\Creditmemo $creditmemo)
5858 $ orderBaseShippingInclTax = $ order ->getBaseShippingInclTax ();
5959 $ allowedTaxAmount = $ order ->getShippingTaxAmount () - $ order ->getShippingTaxRefunded ();
6060 $ allowedAmountInclTax = $ allowedAmount + $ allowedTaxAmount ;
61- $ baseAllowedAmountInclTaxDiff = $ orderBaseShippingInclTax
61+ $ baseAllowedAmountInclTax = $ orderBaseShippingInclTax
6262 - $ order ->getBaseShippingRefunded ()
6363 - $ order ->getBaseShippingTaxRefunded ();
64- $ baseAllowedAmountInclTax = $ this -> getBaseAllowedAmountInclTax ( $ baseAllowedAmountInclTaxDiff );
64+ $ baseAllowedAmountInclTax = max ( $ baseAllowedAmountInclTax , 0 );
6565 // Check if the desired shipping amount to refund was specified (from invoice or another source).
6666 if ($ creditmemo ->hasBaseShippingAmount ()) {
6767 // For the conditional logic, we will either use amounts that always include tax -OR- never include tax.
You can’t perform that action at this time.
0 commit comments