Add GetNextSerialSequence functionality to Stock services and repository

This commit is contained in:
2026-10-08 12:42:50 +05:30
parent 55aa35308a
commit 702efba62e
4 changed files with 34 additions and 0 deletions
@@ -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);
}