From 6796dbea06b369101524671eb396527f6482355d Mon Sep 17 00:00:00 2001 From: Dave Date: Wed, 26 Aug 2026 23:40:47 +0200 Subject: [PATCH] feat(pdf): add noQuote prop to QuoteDocument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Renders 'Not quoted' in item price cells, '—' in totals, and changes the quote_notes callout header to 'Why we cannot quote' when the flag is set. Visual identity stays the same (still a QUOTATION document on letterhead). --- src/lib/pdf/quote-document.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/pdf/quote-document.tsx b/src/lib/pdf/quote-document.tsx index 8e10613..9201753 100644 --- a/src/lib/pdf/quote-document.tsx +++ b/src/lib/pdf/quote-document.tsx @@ -142,7 +142,7 @@ export function QuoteDocument({ logoDataUri, partialNote, quoteNotes, - noQuote: _noQuote, + noQuote, }: QuoteDocumentProps) { const subtotal = quoteSubtotal(items); const vat = vatAmount(subtotal); @@ -236,10 +236,10 @@ export function QuoteDocument({ {item.quantity} - {formatZAR(item.selling_price)} + {noQuote ? "Not quoted" : formatZAR(item.selling_price)} - {formatZAR(item.quantity * item.selling_price)} + {noQuote ? "Not quoted" : formatZAR(item.quantity * item.selling_price)} ))} @@ -265,7 +265,7 @@ export function QuoteDocument({ ]} > - Note + {noQuote ? "Why we cannot quote" : "Note"} {quoteNotes} @@ -273,16 +273,16 @@ export function QuoteDocument({ Subtotal: - {formatZAR(subtotal)} + {noQuote ? "—" : formatZAR(subtotal)} VAT (15%): - {formatZAR(vat)} + {noQuote ? "—" : formatZAR(vat)} Total: - {formatZAR(total)} + {noQuote ? "—" : formatZAR(total)}