From 485f0b69c83b2eaa1d314ccb542da285f3b8de7a Mon Sep 17 00:00:00 2001 From: Scott Pouliot Date: Sat, 16 May 2026 21:51:32 -0400 Subject: [PATCH] Format Log Material dropdown as 'Manufacturer - Name (UoM)' Co-Authored-By: Claude Sonnet 4.6 --- src/PowderCoating.Web/wwwroot/js/log-material.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/PowderCoating.Web/wwwroot/js/log-material.js b/src/PowderCoating.Web/wwwroot/js/log-material.js index 286f551..b54b86b 100644 --- a/src/PowderCoating.Web/wwwroot/js/log-material.js +++ b/src/PowderCoating.Web/wwwroot/js/log-material.js @@ -37,10 +37,12 @@ } function lmMakeRow(it) { - const label = it.name + (it.unitOfMeasure ? ' (' + it.unitOfMeasure + ')' : ''); - const mfr = it.manufacturer - ? `${escLm(it.manufacturer)}` - : ''; + const display = (it.manufacturer ? escLm(it.manufacturer) + ' – ' : '') + + escLm(it.name) + + (it.unitOfMeasure ? ' (' + escLm(it.unitOfMeasure) + ')' : ''); + const label = (it.manufacturer ? it.manufacturer + ' - ' : '') + + it.name + + (it.unitOfMeasure ? ' (' + it.unitOfMeasure + ')' : ''); return `
- ${escLm(label)}${mfr} + ${display}
`; }