diff --git a/core/class/declarationtva_pdf.class.php b/core/class/declarationtva_pdf.class.php index 521cea9..102e233 100644 --- a/core/class/declarationtva_pdf.class.php +++ b/core/class/declarationtva_pdf.class.php @@ -1542,6 +1542,8 @@ class DeclarationTVA_PDF $local_manifest = DOL_DOCUMENT_ROOT.'/custom/declarationtva/templates/manifest.json'; if (file_exists($local_manifest)) { $manifest_content = file_get_contents($local_manifest); + // Set a note that we're using local manifest + $update_info['error'] = 'Using local manifest (Gitea server not accessible)'; } if ($manifest_content === false) { $update_info['error'] = 'Failed to fetch manifest from Gitea and local file not found'; @@ -1600,6 +1602,8 @@ class DeclarationTVA_PDF $local_template = DOL_DOCUMENT_ROOT.'/custom/declarationtva/templates/declarationtva/ca3_official_template.pdf'; if (file_exists($local_template)) { $template_content = file_get_contents($local_template); + // Note that we're using local template + $this->error = 'Using local template (Gitea server not accessible)'; } if ($template_content === false) { $this->error = 'Failed to download template from Gitea and local file not found';