Skip to content

Commit 23ca2e6

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ public function collect(\Magento\Quote\Model\Quote $quote)
144144

145145
$total->setSubtotal(0);
146146
$total->setBaseSubtotal(0);
147+
$total->setBaseSubtotalTotalInclTax(0);
147148

148149
$total->setSubtotalWithDiscount(0);
149150
$total->setBaseSubtotalWithDiscount(0);
@@ -269,7 +270,7 @@ public function collectAddressTotals(
269270
'total' => $total
270271
]
271272
);
272-
// $total->setBaseSubtotalTotalInclTax($total->getBaseSubtotalInclTax());
273+
$total->setBaseSubtotalTotalInclTax($total->getBaseSubtotalInclTax());
273274
$address->addData($total->getData());
274275
$address->setAppliedTaxes($total->getAppliedTaxes());
275276
return $total;

0 commit comments

Comments
 (0)