Add GetNextSerialSequence functionality to Stock services and repository
This commit is contained in:
@@ -28,5 +28,7 @@ public interface IStockRepository
|
||||
|
||||
// Serial numbers
|
||||
Task<bool> SerialNumberExistsAsync(Guid itemId, string serialNumber);
|
||||
/// <summary>One past the highest numeric suffix among the item's existing serials that start with <paramref name="prefix"/> (1 if none).</summary>
|
||||
Task<int> GetNextSerialSequenceAsync(Guid itemId, string prefix);
|
||||
Task AddItemSerialNumberAsync(ItemSerialNumber serial);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user