Add item tracking and warranty settings

This commit is contained in:
2026-10-02 13:03:45 +05:30
parent e3af6100ec
commit 4e493f51f8
4 changed files with 179 additions and 7 deletions
+26 -2
View File
@@ -12,7 +12,13 @@ public record CreateItemRequest(
Guid BaseUomId,
decimal? SalePrice,
List<UomConversionRequest>? Conversions,
decimal? ReorderLevel = null);
decimal? ReorderLevel = null,
bool TracksSerialNumbers = false,
bool TracksBatches = false,
bool TracksExpiryDate = false,
bool HasWarranty = false,
int? WarrantyPeriodDays = null,
bool AllowCustomWarrantyPeriod = false);
public record UpdateItemRequest(
string Name,
@@ -23,7 +29,13 @@ public record UpdateItemRequest(
Guid BaseUomId,
decimal? SalePrice,
bool IsActive = true,
decimal? ReorderLevel = null);
decimal? ReorderLevel = null,
bool TracksSerialNumbers = false,
bool TracksBatches = false,
bool TracksExpiryDate = false,
bool HasWarranty = false,
int? WarrantyPeriodDays = null,
bool AllowCustomWarrantyPeriod = false);
public record ReplaceConversionsRequest(List<UomConversionRequest> Conversions);
@@ -43,6 +55,12 @@ public record ItemSummaryResponse(
string BaseUomName,
decimal? SalePrice,
decimal? ReorderLevel,
bool TracksSerialNumbers,
bool TracksBatches,
bool TracksExpiryDate,
bool HasWarranty,
int? WarrantyPeriodDays,
bool AllowCustomWarrantyPeriod,
Models.SyncSource SyncSource,
bool IsActive,
DateTime CreatedAt);
@@ -62,6 +80,12 @@ public record ItemDetailResponse(
string BaseUomName,
decimal? SalePrice,
decimal? ReorderLevel,
bool TracksSerialNumbers,
bool TracksBatches,
bool TracksExpiryDate,
bool HasWarranty,
int? WarrantyPeriodDays,
bool AllowCustomWarrantyPeriod,
Models.SyncSource SyncSource,
bool IsActive,
DateTime CreatedAt,