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, activeItems,
itemTermsheetIds, itemTermsheetIds,
materialById, materialById,
materialLabel,
materialSpecs, materialSpecs,
specsLabel, specsLabel,
supplierById, supplierById,
@@ -313,7 +314,7 @@ export function AcceptModal({ quoteId, onClose }: AcceptModalProps) {
}} }}
/> />
<span className="flex-1 text-[13px]"> <span className="flex-1 text-[13px]">
{m.category} {m.brand} {materialLabel(m)}
{specText ? ` · ${specText}` : ""} {specText ? ` · ${specText}` : ""}
</span> </span>
<span className="text-[12px] text-muted"> <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 key={li.id} className="rounded-lg border border-line p-2.5">
<div className="mb-1.5 text-[12.5px]"> <div className="mb-1.5 text-[12.5px]">
<span className="font-semibold"> <span className="font-semibold">
{m.category} {m.brand} {materialLabel(m)}
</span> </span>
{specText ? <span className="text-muted"> · {specText}</span> : ""} {specText ? <span className="text-muted"> · {specText}</span> : ""}
<span className="ms-2 text-[11px] text-muted"> <span className="ms-2 text-[11px] text-muted">
+2 -1
View File
@@ -6,6 +6,7 @@ import {
itemTermsheetIds, itemTermsheetIds,
lineItemTotal, lineItemTotal,
materialById, materialById,
materialLabel,
materialSpecs, materialSpecs,
refConverted, refConverted,
specsLabel, specsLabel,
@@ -96,7 +97,7 @@ export function QuoteDetail({ store, q }: QuoteDetailProps) {
> >
<div className="fb-name"> <div className="fb-name">
<Package className="me-1 inline h-3 w-3 text-muted" /> <Package className="me-1 inline h-3 w-3 text-muted" />
{m.category} {m.brand} {materialLabel(m)}
{specText ? ` · ${specText}` : ""} {specText ? ` · ${specText}` : ""}
</div> </div>
<div className="fb-meta"> <div className="fb-meta">