Add GetNextSerialSequence functionality to Stock services and repository
This commit is contained in:
@@ -96,6 +96,10 @@ public class StockService(
|
||||
b.Quantity, b.Item.ReorderLevel!.Value)).ToList();
|
||||
}
|
||||
|
||||
/// <summary>The next unused sequence number for generating serials like "<prefix>0001" for an item.</summary>
|
||||
public Task<int> GetNextSerialSequenceAsync(Guid itemId, string prefix) =>
|
||||
repo.GetNextSerialSequenceAsync(itemId, prefix ?? string.Empty);
|
||||
|
||||
public async Task<StockTotalResponse?> GetItemTotalAsync(Guid itemId)
|
||||
{
|
||||
var item = await itemRepo.GetByIdAsync(itemId);
|
||||
|
||||
Reference in New Issue
Block a user