Fixing templates not being found
This commit is contained in:
parent
4d9bfb6e19
commit
78cc9819f7
|
|
@ -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", "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/header.html",
|
||||
|
|
|
|||
|
|
@ -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", "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/header.html",
|
||||
|
|
|
|||
Loading…
Reference in a new issue