Skip to content

Commit 6778305

Browse files
committed
ACP2E-841: Advanced Pricing Import status message shows wrong count products number of updates
1 parent e99d41c commit 6778305

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/AdvancedPricingImportExport/Model/Import/AdvancedPricing.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ protected function saveAndReplaceAdvancedPrices()
416416
'website_id' => $this->getWebSiteId($rowData[self::COL_TIER_PRICE_WEBSITE])
417417
];
418418
if (\Magento\ImportExport\Model\Import::BEHAVIOR_APPEND == $behavior) {
419-
$bunchTierPrices[$rowSku][] = $tierPrice;
419+
$bunchTierPrices[$rowSku][] = $tierPrice;
420420
}
421421
if (\Magento\ImportExport\Model\Import::BEHAVIOR_REPLACE == $behavior) {
422422
$tierPrices[$rowSku][] = $tierPrice;
@@ -436,6 +436,7 @@ protected function saveAndReplaceAdvancedPrices()
436436
if ($listSku) {
437437
$this->setUpdatedAt($listSku);
438438
}
439+
$this->countItemsCreated -= $this->countItemsUpdated;
439440
} elseif (\Magento\ImportExport\Model\Import::BEHAVIOR_REPLACE == $behavior) {
440441
if ($listSku) {
441442
$this->processCountNewPrices($tierPrices);
@@ -649,7 +650,7 @@ protected function processCountNewPrices(array $tierPrices)
649650
foreach ($tierPrices as $productPrices) {
650651
$this->countItemsCreated += count($productPrices);
651652
}
652-
$this->countItemsCreated -= $this->countItemsUpdated;
653+
// $this->countItemsCreated -= $this->countItemsUpdated; ///
653654

654655
return $this;
655656
}

0 commit comments

Comments
 (0)