refactor: drop QuantityOnHand from catalog import/export

Part of removing inventory quantity tracking; existing seed JSON keeps
the field on disk but it's now ignored on import.
This commit is contained in:
aj
2026-08-01 10:53:09 -04:00
parent 41283987b9
commit 843ba24788
2 changed files with 0 additions and 3 deletions
-1
View File
@@ -103,7 +103,6 @@ public class CatalogStockItemDto
{ {
public decimal LengthInches { get; set; } public decimal LengthInches { get; set; }
public string? Name { get; set; } public string? Name { get; set; }
public int QuantityOnHand { get; set; }
public string? Notes { get; set; } public string? Notes { get; set; }
} }
-2
View File
@@ -362,7 +362,6 @@ public class CatalogService
MaterialId = material.Id, MaterialId = material.Id,
LengthInches = dto.LengthInches, LengthInches = dto.LengthInches,
Name = dto.Name, Name = dto.Name,
QuantityOnHand = dto.QuantityOnHand,
Notes = dto.Notes, Notes = dto.Notes,
CreatedAt = DateTime.UtcNow CreatedAt = DateTime.UtcNow
}; };
@@ -388,7 +387,6 @@ public class CatalogService
{ {
LengthInches = s.LengthInches, LengthInches = s.LengthInches,
Name = s.Name, Name = s.Name,
QuantityOnHand = s.QuantityOnHand,
Notes = s.Notes Notes = s.Notes
}).ToList(); }).ToList();
} }