fix(quotes): show real material names instead of category in accept modal & detail
Line-item labels in the accept modal («پروژهی هر قلم» and the keep/reject list) and the quote-detail flow boxes printed category + brand (e.g. the topic name). Both now use materialLabel() → the material's actual stored name, consistent with the rest of the dashboard.
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
activeItems,
|
||||
itemTermsheetIds,
|
||||
materialById,
|
||||
materialLabel,
|
||||
materialSpecs,
|
||||
specsLabel,
|
||||
supplierById,
|
||||
@@ -313,7 +314,7 @@ export function AcceptModal({ quoteId, onClose }: AcceptModalProps) {
|
||||
}}
|
||||
/>
|
||||
<span className="flex-1 text-[13px]">
|
||||
{m.category} {m.brand}
|
||||
{materialLabel(m)}
|
||||
{specText ? ` · ${specText}` : ""}
|
||||
</span>
|
||||
<span className="text-[12px] text-muted">
|
||||
@@ -355,7 +356,7 @@ export function AcceptModal({ quoteId, onClose }: AcceptModalProps) {
|
||||
<div key={li.id} className="rounded-lg border border-line p-2.5">
|
||||
<div className="mb-1.5 text-[12.5px]">
|
||||
<span className="font-semibold">
|
||||
{m.category} {m.brand}
|
||||
{materialLabel(m)}
|
||||
</span>
|
||||
{specText ? <span className="text-muted"> · {specText}</span> : ""}
|
||||
<span className="ms-2 text-[11px] text-muted">
|
||||
|
||||
Reference in New Issue
Block a user