Skip to content

Commit

Permalink
fix: add stock location for reservations only if related to correct SC
Browse files Browse the repository at this point in the history
  • Loading branch information
fPolic committed Dec 18, 2024
1 parent 9133957 commit 21c37b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const prepareConfirmInventoryInput = (data: {
hasSalesChannelStockLocation = true
}

if (stock_locations) {
if (stock_locations && sales_channels?.id === salesChannelId) {
stockLocationIds.add(stock_locations.id)
}

Expand Down

0 comments on commit 21c37b8

Please sign in to comment.