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:
2026-09-08 14:51:36 +03:30
parent 529eb67d01
commit c64718ef70
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -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">
+2 -1
View File
@@ -6,6 +6,7 @@ import {
itemTermsheetIds,
lineItemTotal,
materialById,
materialLabel,
materialSpecs,
refConverted,
specsLabel,
@@ -96,7 +97,7 @@ export function QuoteDetail({ store, q }: QuoteDetailProps) {
>
<div className="fb-name">
<Package className="me-1 inline h-3 w-3 text-muted" />
{m.category} {m.brand}
{materialLabel(m)}
{specText ? ` · ${specText}` : ""}
</div>
<div className="fb-meta">