Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions InventoryImportExport/Model/Import/Sources.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ class Sources extends AbstractEntity
public const COL_QTY = SourceItemInterface::QUANTITY;
public const COL_STATUS = SourceItemInterface::STATUS;

protected $validColumnNames = [
self::COL_SKU,
self::COL_SOURCE_CODE,
self::COL_QTY,
self::COL_STATUS
];

/**
* @var Json
*/
Expand Down Expand Up @@ -91,6 +98,10 @@ public function __construct(
$this->commands = $commands;
$this->getSourceCodesBySkus = $getSourceCodesBySkus ?: ObjectManager::getInstance()
->get(\Magento\InventoryApi\Model\GetSourceCodesBySkusInterface::class);

foreach ($this->errorMessageTemplates as $errorCode => $message) {
$this->getErrorAggregator()->addErrorMessageTemplate($errorCode, $message);
}
}

/**
Expand Down