Fix inventory label duplicate color/finish display

- Suppress ColorName line if it matches the item Name (powders use
  color name as their item name, causing it to show twice)
- Suppress Finish if already contained in the item Name
- Always show Manufacturer regardless of whether it is populated

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-10 16:07:43 -04:00
parent 82fb48f7a5
commit e313149f08
@@ -148,21 +148,18 @@
<div class="label-sku">SKU: @Model.SKU</div>
@if (!string.IsNullOrEmpty(Model.ColorName))
@if (!string.IsNullOrEmpty(Model.ColorName) && !string.Equals(Model.ColorName, Model.Name, StringComparison.OrdinalIgnoreCase))
{
<div class="label-color">
@Model.ColorName
@if (!string.IsNullOrEmpty(Model.Finish))
@if (!string.IsNullOrEmpty(Model.Finish) && Model.Name.IndexOf(Model.Finish, StringComparison.OrdinalIgnoreCase) < 0)
{
<span> &mdash; @Model.Finish</span>
}
</div>
}
@if (!string.IsNullOrEmpty(Model.Manufacturer))
{
<div class="label-sku" style="color:#777">@Model.Manufacturer</div>
}
<div class="label-sku" style="color:#777">@Model.Manufacturer</div>
@if (!string.IsNullOrEmpty(Model.Location))
{