Skip to content

Commit e116b30

Browse files
committed
AC-13075: FPT value in cart page and product page are different for same configurations for a dynamic product
1 parent f0c8088 commit e116b30

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

‎app/code/Magento/Tax/Model/Calculation/AbstractAggregateCalculator.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,8 @@ protected function calculateWithTaxNotInPrice(QuoteDetailsItemInterface $item, $
115115
$taxId = $appliedRate['id'];
116116
$taxRate = $appliedRate['percent'];
117117
$rowTaxPerRate = $this->calculationTool->calcTaxAmount($rowTotalForTaxCalculation, $taxRate, false, false);
118-
$deltaRoundingType = self::KEY_REGULAR_DELTA_ROUNDING;
119-
if ($applyTaxAfterDiscount) {
120-
$deltaRoundingType = self::KEY_TAX_BEFORE_DISCOUNT_DELTA_ROUNDING;
121-
}
122-
$rowTaxPerRate = $this->roundAmount($rowTaxPerRate, $taxId, false, $deltaRoundingType, $round, $item);
118+
$rowTaxPerRate = $this->calculationTool->round($rowTaxPerRate);
123119
$rowTaxAfterDiscount = $rowTaxPerRate;
124-
125120
//Handle discount
126121
if ($applyTaxAfterDiscount) {
127122
//TODO: handle originalDiscountAmount

‎app/code/Magento/Weee/Model/Tax.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,9 @@ public function getProductWeeeAttributes(
367367
$taxAmount = $value * $currentPercent / 100;
368368
}
369369
}
370+
if ($round) {
371+
$taxAmount = $this->priceCurrency->round($taxAmount);
372+
}
370373
}
371374
}
372375

0 commit comments

Comments
 (0)