From 843ba24788977193befa77f1be6eee4b21e2c3db Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Sat, 1 Aug 2026 10:53:09 -0400 Subject: [PATCH] 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. --- CutList.Web/DTOs/CatalogDtos.cs | 1 - CutList.Web/Services/CatalogService.cs | 2 -- 2 files changed, 3 deletions(-) diff --git a/CutList.Web/DTOs/CatalogDtos.cs b/CutList.Web/DTOs/CatalogDtos.cs index a04530e..325a276 100644 --- a/CutList.Web/DTOs/CatalogDtos.cs +++ b/CutList.Web/DTOs/CatalogDtos.cs @@ -103,7 +103,6 @@ public class CatalogStockItemDto { public decimal LengthInches { get; set; } public string? Name { get; set; } - public int QuantityOnHand { get; set; } public string? Notes { get; set; } } diff --git a/CutList.Web/Services/CatalogService.cs b/CutList.Web/Services/CatalogService.cs index 363271b..37de1bd 100644 --- a/CutList.Web/Services/CatalogService.cs +++ b/CutList.Web/Services/CatalogService.cs @@ -362,7 +362,6 @@ public class CatalogService MaterialId = material.Id, LengthInches = dto.LengthInches, Name = dto.Name, - QuantityOnHand = dto.QuantityOnHand, Notes = dto.Notes, CreatedAt = DateTime.UtcNow }; @@ -388,7 +387,6 @@ public class CatalogService { LengthInches = s.LengthInches, Name = s.Name, - QuantityOnHand = s.QuantityOnHand, Notes = s.Notes }).ToList(); }