This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// Increments quantity in the local WarehouseItemStock table. | |
| /// </summary> | |
| private async Task IncrementLocalQuantity(WarehouseItem warehouseItem, decimal quantityChange) | |
| { | |
| await using var context = await _dbContextFactory.CreateDbContextAsync(); | |
| var stock = await context.Set<WarehouseItemStock>() | |
| .FirstOrDefaultAsync(s => s.WarehouseItemId == warehouseItem.Id); | |
| if (stock == null) |