Fixing templates not being found

This commit is contained in:
Finley Ghosh 2026-01-21 19:53:57 +11:00
parent 4d9bfb6e19
commit 78cc9819f7
3 changed files with 16 additions and 0 deletions

View file

@ -118,6 +118,14 @@ func (g *HTMLDocumentGenerator) BuildInvoiceHTML(data *InvoicePDFData, totalPage
filepath.Join("go", "internal", "cmc", "pdf", "templates", "invoice.html"), filepath.Join("go", "internal", "cmc", "pdf", "templates", "invoice.html"),
filepath.Join("go", "internal", "cmc", "pdf", "templates", "header.html"), filepath.Join("go", "internal", "cmc", "pdf", "templates", "header.html"),
}, },
{
filepath.Join("templates", "invoice.html"),
filepath.Join("templates", "header.html"),
},
{
"/app/templates/invoice.html",
"/app/templates/header.html",
},
{ {
"/app/go/internal/cmc/pdf/templates/invoice.html", "/app/go/internal/cmc/pdf/templates/invoice.html",
"/app/go/internal/cmc/pdf/templates/header.html", "/app/go/internal/cmc/pdf/templates/header.html",

View file

@ -168,6 +168,14 @@ func (g *HTMLDocumentGenerator) BuildQuoteHTML(data *QuotePDFData, totalPages in
filepath.Join("go", "internal", "cmc", "pdf", "templates", "quote.html"), filepath.Join("go", "internal", "cmc", "pdf", "templates", "quote.html"),
filepath.Join("go", "internal", "cmc", "pdf", "templates", "header.html"), filepath.Join("go", "internal", "cmc", "pdf", "templates", "header.html"),
}, },
{
filepath.Join("templates", "quote.html"),
filepath.Join("templates", "header.html"),
},
{
"/app/templates/quote.html",
"/app/templates/header.html",
},
{ {
"/app/go/internal/cmc/pdf/templates/quote.html", "/app/go/internal/cmc/pdf/templates/quote.html",
"/app/go/internal/cmc/pdf/templates/header.html", "/app/go/internal/cmc/pdf/templates/header.html",

BIN
go/server

Binary file not shown.