Skip to content

Commit adbcbcf

Browse files
Chhandak.BaruaChhandak.Barua
authored andcommitted
ACP2E-1076: Discount (Cart price rules) ignore Weee tax amount included in subtotal cart
1 parent 17ce5c4 commit adbcbcf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/Quote/Model/Quote/TotalsCollector.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)