File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
app/code/Magento/Tax/Model/Sales/Total/Quote
dev/tests/integration/testsuite/Magento/Tax/Model/Sales/Total/Quote Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -535,6 +535,7 @@ protected function processProductItems(
535
535
$ total ->setSubtotalInclTax ($ subtotalInclTax );
536
536
$ total ->setBaseSubtotalTotalInclTax ($ baseSubtotalInclTax );
537
537
$ total ->setBaseSubtotalInclTax ($ baseSubtotalInclTax );
538
+ $ shippingAssignment ->getShipping ()->getAddress ()->setBaseSubtotalTotalInclTax ($ baseSubtotalInclTax );;
538
539
539
540
return $ this ;
540
541
}
Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ public function testCollectUnitBased($expected)
125
125
126
126
$ this ->assertEquals ($ expected ['subtotal ' ], $ total ->getSubtotal ());
127
127
$ this ->assertEquals ($ expected ['subtotal ' ] + $ expected ['tax_amount ' ], $ total ->getSubtotalInclTax ());
128
+ $ this ->assertEquals ($ expected ['subtotal ' ] + $ expected ['tax_amount ' ], $ address ->getBaseSubtotalTotalInclTax ());
128
129
$ this ->assertEquals ($ expected ['discount_amount ' ], $ total ->getDiscountAmount ());
129
130
$ items = $ address ->getAllItems ();
130
131
/** @var \Magento\Quote\Model\Quote\Address\Item $item */
You can’t perform that action at this time.
0 commit comments