Skip to content

Commit

Permalink
VCST-1171: the inventory module releases all inventory into one produ…
Browse files Browse the repository at this point in the history
…ct (#141)

fix: The fix resolves that the inventory module releases all inventory into one product if customer ordered multiple product from same warehouse.
  • Loading branch information
OlegoO committed May 31, 2024
1 parent 11880a2 commit 8a198d3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ protected virtual async Task ProcessReleaseRequest(InventoryReleaseRequest reque

foreach (var itemTransactionsEntity in itemTransactionsEntities)
{
var inventoryEntity = inventoryEntities.FirstOrDefault(x => x.FulfillmentCenterId == itemTransactionsEntity.FulfillmentCenterId);
var inventoryEntity = inventoryEntities.FirstOrDefault(x => x.FulfillmentCenterId == itemTransactionsEntity.FulfillmentCenterId &&
x.Sku == itemTransactionsEntity.ProductId);
if (inventoryEntity == null)
{
continue;
Expand Down

0 comments on commit 8a198d3

Please sign in to comment.