From 441898b52f43c827e67311e226dbf5f845c2ddf0 Mon Sep 17 00:00:00 2001 From: Scott Pouliot Date: Tue, 19 May 2026 18:33:50 -0400 Subject: [PATCH] Fix NoExtraLayerCharge not persisting on quotes and job EditItems reload - QuotePricingAssemblyService.BuildQuoteItemCoat: map NoExtraLayerCharge from CreateQuoteItemCoatDto to QuoteItemCoat on every quote save (was always omitted) - JobsController.EditItems GET: include NoExtraLayerCharge in coat mapping when reloading existing items for the wizard (was dropped, causing revert on second edit) Co-Authored-By: Claude Sonnet 4.6 --- .../Services/QuotePricingAssemblyService.cs | 1 + src/PowderCoating.Web/Controllers/JobsController.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/PowderCoating.Application/Services/QuotePricingAssemblyService.cs b/src/PowderCoating.Application/Services/QuotePricingAssemblyService.cs index 9efa727..db45f13 100644 --- a/src/PowderCoating.Application/Services/QuotePricingAssemblyService.cs +++ b/src/PowderCoating.Application/Services/QuotePricingAssemblyService.cs @@ -264,6 +264,7 @@ public class QuotePricingAssemblyService : IQuotePricingAssemblyService TransferEfficiency = coatDto.TransferEfficiency, PowderCostPerLb = coatDto.PowderCostPerLb, PowderToOrder = coatDto.PowderToOrder, + NoExtraLayerCharge = coatDto.NoExtraLayerCharge, Notes = coatDto.Notes, CompanyId = companyId, CreatedAt = createdAtUtc diff --git a/src/PowderCoating.Web/Controllers/JobsController.cs b/src/PowderCoating.Web/Controllers/JobsController.cs index c2fe1ea..28f0650 100644 --- a/src/PowderCoating.Web/Controllers/JobsController.cs +++ b/src/PowderCoating.Web/Controllers/JobsController.cs @@ -2946,6 +2946,7 @@ public class JobsController : Controller TransferEfficiency = c.TransferEfficiency, PowderCostPerLb = c.PowderCostPerLb, PowderToOrder = c.PowderToOrder, + NoExtraLayerCharge = c.NoExtraLayerCharge, Notes = c.Notes }).ToList(), PrepServices = ji.PrepServices.Select(ps => new CreateQuoteItemPrepServiceDto