From ecb285657a8dca313d87a574b666117399ae36d6 Mon Sep 17 00:00:00 2001 From: Scott Pouliot Date: Wed, 6 May 2026 14:29:03 -0400 Subject: [PATCH] Fix sandblast-only toggle overflow and $0 AI quote pricing Overflow: replaced Bootstrap form-check with an explicit flex row so the two-line label (title + subtitle) never bleeds outside the card boundary. $0 pricing: when sandblast-only was toggled on an AI item, manualUnitPrice was cleared and isAiItem set to false. The pricing engine then returned $0 because no prep services with minutes were configured. Fix: preserve the AI price when toggling sandblast-only, and keep isAiItem=true so the server routes through the AI-price path (manualUnitPrice) rather than trying to recalculate from prep labor. Co-Authored-By: Claude Sonnet 4.6 --- .../wwwroot/js/item-wizard.js | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/PowderCoating.Web/wwwroot/js/item-wizard.js b/src/PowderCoating.Web/wwwroot/js/item-wizard.js index 6e76048..bacfc82 100644 --- a/src/PowderCoating.Web/wwwroot/js/item-wizard.js +++ b/src/PowderCoating.Web/wwwroot/js/item-wizard.js @@ -1461,10 +1461,12 @@ function aiShowError(message) { function renderStep3Html() { const isSandblastOnly = !!wz.data.sandblastOnly; return ` -
- -