import { Paperclip } from "lucide-react"; import { faNum } from "../../lib/formatters"; import { groupCommas } from "../../lib/numutil"; import { JalaliDatePicker } from "../../components/JalaliDatePicker"; export interface Step5Props { quoteDate: string | null; onQuoteDate: (iso: string | null) => void; expiryDate: string | null; onExpiryDate: (iso: string | null) => void; notes: string; onNotes: (v: string) => void; proforma: File | null; onProforma: (f: File | null) => void; // خلاصه‌ی بازبینی summary: { supplierName: string; topicName: string; projects: string[]; itemCount: number; tsCount: number; grandTotal: number; isOfficial: boolean; orphanCount: number; }; } // مرحله ۵ — تاریخ، یادداشت، پیش‌فاکتور و بازبینی نهایی export function Step5Review({ quoteDate, onQuoteDate, expiryDate, onExpiryDate, notes, onNotes, proforma, onProforma, summary, }: Step5Props) { const rows: [string, string][] = [ ["تأمین‌کننده", summary.supplierName], ["موضوع", summary.topicName], ["پروژه‌ها", summary.projects.join("، ") || "—"], ["تعداد اقلام", groupCommas(summary.itemCount, true)], ["تعداد termsheet", groupCommas(summary.tsCount, true)], ["جمع کل تقریبی", groupCommas(summary.grandTotal, true) + " تومان"], ["فاکتور رسمی", summary.isOfficial ? "بله" : "خیر"], ["پیش‌فاکتور", proforma ? proforma.name : "—"], ]; return (

۵ تاریخ، یادداشت و بازبینی نهایی

{/* تاریخ پیشنهاد: فضای بزرگتر (۷ ستون از ۱۲) به همراه ساعت */}
پیش‌فرض امروز
{/* تاریخ انقضای پیشنهاد: فضای کوچکتر (۵ ستون از ۱۲) */}
تا چه زمانی این قیمت معتبر است؟