diff --git a/InventoryConfiguration/Model/GetStockItemConfiguration.php b/InventoryConfiguration/Model/GetStockItemConfiguration.php index 5dda91ff7a4e..cd52a735d0ec 100644 --- a/InventoryConfiguration/Model/GetStockItemConfiguration.php +++ b/InventoryConfiguration/Model/GetStockItemConfiguration.php @@ -74,7 +74,7 @@ public function execute(string $sku, int $stockId): StockItemConfigurationInterf && true === $this->isSourceItemManagementAllowedForSku->execute($sku) && false === $this->isProductAssignedToStock->execute($sku, $stockId)) { throw new SkuIsNotAssignedToStockException( - __('The requested sku is not assigned to given stock.') + __('The requested sku %1 is not assigned to given stock.', $sku) ); } diff --git a/InventoryConfiguration/i18n/en_US.csv b/InventoryConfiguration/i18n/en_US.csv index c03275c24245..5982613c3d6f 100644 --- a/InventoryConfiguration/i18n/en_US.csv +++ b/InventoryConfiguration/i18n/en_US.csv @@ -1 +1,2 @@ "The requested sku is not assigned to given stock.","The requested sku is not assigned to given stock." +"The requested sku %1 is not assigned to given stock.","The requested sku %1 is not assigned to given stock." diff --git a/InventoryExportStock/Model/PreciseExportStockProcessor.php b/InventoryExportStock/Model/PreciseExportStockProcessor.php index 87df7cd4466e..668523a923f4 100644 --- a/InventoryExportStock/Model/PreciseExportStockProcessor.php +++ b/InventoryExportStock/Model/PreciseExportStockProcessor.php @@ -143,7 +143,7 @@ private function getItem(string $sku, int $stockId): array ]; } if (!$this->isProductAssignedToStock->execute($sku, $stockId)) { - throw new SkuIsNotAssignedToStockException(__('The requested sku is not assigned to given stock.')); + throw new SkuIsNotAssignedToStockException(__('The requested sku %1 is not assigned to given stock.', $sku)); } $result = $this->areProductsSalable->execute([$sku], $stockId); diff --git a/InventorySales/Model/IsProductSalableForRequestedQtyCondition/IsProductSalableForRequestedQtyConditionChain.php b/InventorySales/Model/IsProductSalableForRequestedQtyCondition/IsProductSalableForRequestedQtyConditionChain.php index 2c8ccb4ab755..fd49165a4724 100644 --- a/InventorySales/Model/IsProductSalableForRequestedQtyCondition/IsProductSalableForRequestedQtyConditionChain.php +++ b/InventorySales/Model/IsProductSalableForRequestedQtyCondition/IsProductSalableForRequestedQtyConditionChain.php @@ -167,7 +167,7 @@ public function execute(string $sku, int $stockId, float $requestedQty): Product $errors = [ $this->productSalabilityErrorFactory->create([ 'code' => 'requested-sku-is-not-assigned-to-given-stock', - 'message' => __('The requested sku is not assigned to given stock.') + 'message' => __('The requested sku %1 is not assigned to given stock.', $sku) ]) ]; return $this->productSalableResultFactory->create(['errors' => $errors]); diff --git a/InventorySales/Model/IsProductSalableForRequestedQtyCondition/IsSalableWithReservationsCondition.php b/InventorySales/Model/IsProductSalableForRequestedQtyCondition/IsSalableWithReservationsCondition.php index 72f58cee67c8..1b2f0df1e34f 100644 --- a/InventorySales/Model/IsProductSalableForRequestedQtyCondition/IsSalableWithReservationsCondition.php +++ b/InventorySales/Model/IsProductSalableForRequestedQtyCondition/IsSalableWithReservationsCondition.php @@ -86,7 +86,7 @@ public function execute(string $sku, int $stockId, float $requestedQty): Product $errors = [ $this->productSalabilityErrorFactory->create([ 'code' => 'is_salable_with_reservations-no_data', - 'message' => __('The requested sku is not assigned to given stock') + 'message' => __('The requested sku %1 is not assigned to given stock.', $sku) ]) ]; return $this->productSalableResultFactory->create(['errors' => $errors]); diff --git a/InventorySales/i18n/en_US.csv b/InventorySales/i18n/en_US.csv index 95c08fe2f35c..74880526cd52 100644 --- a/InventorySales/i18n/en_US.csv +++ b/InventorySales/i18n/en_US.csv @@ -11,6 +11,7 @@ "You cannot use decimal quantity for this product.","You cannot use decimal quantity for this product." "Parameter ""sort_order"" must be present for urequired conditions.","Parameter ""sort_order"" must be present for urequired conditions." "Condition have to implement IsProductSalableForRequestedQtyInterface.","Condition have to implement IsProductSalableForRequestedQtyInterface." +"The requested sku %1 is not assigned to given stock.","The requested sku %1 is not assigned to given stock." "The requested sku is not assigned to given stock.","The requested sku is not assigned to given stock." "The requested sku is not assigned to given stock","The requested sku is not assigned to given stock" "The requested qty is not available","The requested qty is not available"