File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
app/code/Magento/Quote/Model/Quote Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,6 @@ public function collect(\Magento\Quote\Model\Quote $quote)
144144
145145 $ total ->setSubtotal (0 );
146146 $ total ->setBaseSubtotal (0 );
147- $ total ->setBaseSubtotalTotalInclTax (0 );
148147
149148 $ total ->setSubtotalWithDiscount (0 );
150149 $ total ->setBaseSubtotalWithDiscount (0 );
@@ -270,7 +269,7 @@ public function collectAddressTotals(
270269 'total ' => $ total
271270 ]
272271 );
273- $ total ->setBaseSubtotalTotalInclTax ($ total ->getBaseSubtotalInclTax ());
272+ ( $ total -> getBaseSubtotal () > 0 )?? $ total ->setBaseSubtotalTotalInclTax ($ total ->getBaseSubtotalInclTax ());
274273 $ address ->addData ($ total ->getData ());
275274 $ address ->setAppliedTaxes ($ total ->getAppliedTaxes ());
276275 return $ total ;
You can’t perform that action at this time.
0 commit comments