File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
app/code/Magento/AdvancedPricingImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -436,7 +436,6 @@ protected function saveAndReplaceAdvancedPrices()
436
436
if ($ listSku ) {
437
437
$ this ->setUpdatedAt ($ listSku );
438
438
}
439
- $ this ->countItemsCreated -= $ this ->countItemsUpdated ;
440
439
} elseif (\Magento \ImportExport \Model \Import::BEHAVIOR_REPLACE == $ behavior ) {
441
440
if ($ listSku ) {
442
441
$ this ->processCountNewPrices ($ tierPrices );
@@ -446,6 +445,7 @@ protected function saveAndReplaceAdvancedPrices()
446
445
}
447
446
}
448
447
}
448
+ $ this ->finalizeCount ();
449
449
450
450
return $ this ;
451
451
}
@@ -650,11 +650,18 @@ protected function processCountNewPrices(array $tierPrices)
650
650
foreach ($ tierPrices as $ productPrices ) {
651
651
$ this ->countItemsCreated += count ($ productPrices );
652
652
}
653
- // $this->countItemsCreated -= $this->countItemsUpdated; ///
654
653
655
654
return $ this ;
656
655
}
657
656
657
+ /**
658
+ * Finalize count of new and existing records
659
+ */
660
+ protected function finalizeCount ()
661
+ {
662
+ $ this ->countItemsCreated -= $ this ->countItemsUpdated ;
663
+ }
664
+
658
665
/**
659
666
* Get product entity link field
660
667
*
You can’t perform that action at this time.
0 commit comments