From e197dc540aa56698cc09bf9a5a289570d3aa5f99 Mon Sep 17 00:00:00 2001 From: Finley Ghosh Date: Wed, 21 Jan 2026 20:26:37 +1100 Subject: [PATCH] Fixing quotes --- go/internal/cmc/pdf/quote_builder.go | 2 +- go/internal/cmc/pdf/templates/quote.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/go/internal/cmc/pdf/quote_builder.go b/go/internal/cmc/pdf/quote_builder.go index 23a84a1a..912dd9b7 100644 --- a/go/internal/cmc/pdf/quote_builder.go +++ b/go/internal/cmc/pdf/quote_builder.go @@ -136,7 +136,7 @@ func (g *HTMLDocumentGenerator) BuildQuoteHTML(data *QuotePDFData, totalPages in ItemNumber: item.ItemNumber, Title: item.Title, Quantity: item.Quantity, - Description: template.HTML(""), // Quotes don't have descriptions in line items by default + Description: template.HTML(item.Description), // Allow HTML in description GrossUnitPrice: item.GrossUnitPrice, GrossPrice: item.GrossPrice, }) diff --git a/go/internal/cmc/pdf/templates/quote.html b/go/internal/cmc/pdf/templates/quote.html index 0aa212ac..5620f3b6 100644 --- a/go/internal/cmc/pdf/templates/quote.html +++ b/go/internal/cmc/pdf/templates/quote.html @@ -118,6 +118,7 @@ .pricing-header { text-align: center; margin: 8mm 0 5mm 0; + page-break-before: always; } .pricing-header h2 { @@ -313,7 +314,7 @@ COMPANY NAME: {{.CompanyName}} - QUOTE NO.: + QUOTE NO: {{.QuoteNumber}}