Format Log Material dropdown as 'Manufacturer - Name (UoM)'
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -37,10 +37,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function lmMakeRow(it) {
|
function lmMakeRow(it) {
|
||||||
const label = it.name + (it.unitOfMeasure ? ' (' + it.unitOfMeasure + ')' : '');
|
const display = (it.manufacturer ? escLm(it.manufacturer) + ' – ' : '') +
|
||||||
const mfr = it.manufacturer
|
escLm(it.name) +
|
||||||
? `<span class="text-muted ms-1" style="font-size:.78rem;">${escLm(it.manufacturer)}</span>`
|
(it.unitOfMeasure ? ' <span class="text-muted" style="font-size:.82rem;">(' + escLm(it.unitOfMeasure) + ')</span>' : '');
|
||||||
: '';
|
const label = (it.manufacturer ? it.manufacturer + ' - ' : '') +
|
||||||
|
it.name +
|
||||||
|
(it.unitOfMeasure ? ' (' + it.unitOfMeasure + ')' : '');
|
||||||
return `<div class="lm-item-opt" style="padding:.35rem .75rem;font-size:.875rem;cursor:pointer;"
|
return `<div class="lm-item-opt" style="padding:.35rem .75rem;font-size:.875rem;cursor:pointer;"
|
||||||
data-id="${it.id}"
|
data-id="${it.id}"
|
||||||
data-qty="${it.quantityOnHand}"
|
data-qty="${it.quantityOnHand}"
|
||||||
@@ -49,7 +51,7 @@
|
|||||||
onmousedown="event.preventDefault(); lmComboSelect(this)"
|
onmousedown="event.preventDefault(); lmComboSelect(this)"
|
||||||
onmouseenter="this.style.background='#f0f4ff'"
|
onmouseenter="this.style.background='#f0f4ff'"
|
||||||
onmouseleave="this.classList.contains('lm-active') ? null : this.style.background=''">
|
onmouseleave="this.classList.contains('lm-active') ? null : this.style.background=''">
|
||||||
${escLm(label)}${mfr}
|
${display}
|
||||||
</div>`;
|
</div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user