From 49a539d7e5038dc26b08a9a347cef27aeca0d90e Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Sat, 1 Aug 2026 11:12:12 -0400 Subject: [PATCH] feat: allow unlimited quantity for catalog-sourced job stock Custom-length job stock already supported -1 (unlimited); catalog- sourced stock only allowed >= 1. Closes that inconsistency per docs/superpowers/specs/2026-08-01-remove-inventory-quantity-tracking-design.md. Also updates the Results tab's unplaced-items message now that insufficient configured quantity is a normal cause, not an edge case. --- CutList.Web/Components/Pages/Jobs/Edit.razor | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CutList.Web/Components/Pages/Jobs/Edit.razor b/CutList.Web/Components/Pages/Jobs/Edit.razor index ad02853..d369390 100644 --- a/CutList.Web/Components/Pages/Jobs/Edit.razor +++ b/CutList.Web/Components/Pages/Jobs/Edit.razor @@ -814,7 +814,8 @@ else
- + + -1 = unlimited
@@ -1123,7 +1124,7 @@ else {
@materialResult.PackResult.ItemsNotUsed.Count items not placed — - No stock lengths available or parts too long. + not enough stock quantity entered for this job, no stock lengths configured, or parts too long.
} @@ -1319,9 +1320,9 @@ else return; } - if (newStock.Quantity < 1) + if (newStock.Quantity < -1 || newStock.Quantity == 0) { - stockErrorMessage = "Quantity must be at least 1"; + stockErrorMessage = "Quantity must be at least 1 (or -1 for unlimited)"; return; }