Fix case sensitivity in invoice template file paths

This commit is contained in:
Focuslinkstech 2025-03-18 13:12:30 +01:00
parent d372bf4711
commit c45e19189a

View File

@ -11,9 +11,9 @@ class Invoice
throw new Exception("Invoice ID is required"); throw new Exception("Invoice ID is required");
} }
$templatePath = 'pages/custom_invoice.html'; $templatePath = 'pages/Custom_Invoice.html';
if (!file_exists($templatePath)) { if (!file_exists($templatePath)) {
$templatePath = 'pages/default_invoice.html'; $templatePath = 'pages/Default_Invoice.html';
} }
$template = file_get_contents($templatePath); $template = file_get_contents($templatePath);