Skip to content

Commit 0219f14

Browse files
author
Yu Tang
committed
MAGETWO-33581: Refactor modules to remove usage of Tax module builders
- Fixed integration test failure
1 parent 68e8c1a commit 0219f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Tax/Model/Calculation/AbstractCalculator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ protected function getAppliedTax($rowTax, $appliedRate)
354354
*/
355355
protected function getAppliedTaxes($rowTax, $totalTaxRate, $appliedRates)
356356
{
357-
$appliedTaxDataObject = $this->appliedTaxDataObjectFactory->create();
358357
/** @var \Magento\Tax\Api\Data\AppliedTaxInterface[] $appliedTaxes */
359358
$appliedTaxes = [];
360359
$totalAppliedAmount = 0;
@@ -376,6 +375,7 @@ protected function getAppliedTaxes($rowTax, $totalTaxRate, $appliedRates)
376375
}
377376
$totalAppliedAmount += $appliedAmount;
378377

378+
$appliedTaxDataObject = $this->appliedTaxDataObjectFactory->create();
379379
$appliedTaxDataObject->setAmount($appliedAmount);
380380
$appliedTaxDataObject->setPercent($appliedRate['percent']);
381381
$appliedTaxDataObject->setTaxRateKey($appliedRate['id']);

0 commit comments

Comments
 (0)