We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72c7882 commit 8c5cdd6Copy full SHA for 8c5cdd6
src/Modules/SimplCommerce.Module.Inventory/Services/StockService.cs
@@ -49,7 +49,6 @@ public async Task UpdateStock(StockUpdateRequest stockUpdateRequest)
49
var stock = await _stockRepository.Query().FirstOrDefaultAsync(x => x.ProductId == stockUpdateRequest.ProductId && x.WarehouseId == stockUpdateRequest.WarehouseId);
50
51
var adjustedQuantity = stockUpdateRequest.AdjustedQuantity;
52
-
53
if (adjustedQuantity < 0 && Math.Abs(adjustedQuantity) > stock.Quantity)
54
{
55
adjustedQuantity = -stock.Quantity;
0 commit comments