@model (int ItemIndex, List Coats) @{ var itemIndex = Model.ItemIndex; var coats = Model.Coats ?? new List(); // Debug: Log coat count var coatCountForDebug = coats.Count; // If no coats exist, initialize with one default Single Stage coat if (!coats.Any()) { coats.Add(new PowderCoating.Application.DTOs.Quote.CreateQuoteItemCoatDto { CoatName = "Single Stage", Sequence = 1, CoverageSqFtPerLb = 30, TransferEfficiency = 65 }); } }
@for (int coatIndex = 0; coatIndex < coats.Count; coatIndex++) { var coat = coats[coatIndex]; var isExpanded = coatIndex == 0; // First coat expanded by default

@if (coats.Count > 1) { }

@{ var hasInventoryItem = coat.InventoryItemId.HasValue && coat.InventoryItemId.Value > 0; var isCustom = !string.IsNullOrEmpty(coat.ColorName) || coat.PowderCostPerLb.HasValue; var coatType = hasInventoryItem ? "stock" : (isCustom ? "custom" : "stock"); }
sq ft/lb
%
lbs
Auto-filled from powder needed (rounded up)
$ per lb
sq ft/lb
%
0.00 lbs
This calculation is for the entire batch (all items × surface area)
}
First coat = 100% labor, each additional = +30% labor