From a520248a04a8cd3acce4f143bbfdae88f3b866eb Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Wed, 8 Oct 2025 01:11:10 +0200 Subject: [PATCH] Revert to official government version 30 - Keep template version at 30 (official government version) - Remove version 31 entry from manifest - Maintain official CA-3 template version 30 - Template version should match government document version --- core/class/declarationtva_pdf.class.php | 6 +++--- templates/manifest.json | 10 ++-------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/core/class/declarationtva_pdf.class.php b/core/class/declarationtva_pdf.class.php index 061f37c..520b907 100644 --- a/core/class/declarationtva_pdf.class.php +++ b/core/class/declarationtva_pdf.class.php @@ -64,7 +64,7 @@ class DeclarationTVA_PDF /** * @var string Template version */ - public $template_version = '31'; + public $template_version = '30'; /** * @var string Template document number @@ -1547,7 +1547,7 @@ class DeclarationTVA_PDF } if ($manifest_content === false) { $update_info['error'] = 'Failed to fetch manifest from Gitea and local file not found'; - return $update_info; + return $update_info; } } @@ -1607,7 +1607,7 @@ class DeclarationTVA_PDF } if ($template_content === false) { $this->error = 'Failed to download template from Gitea and local file not found'; - return false; + return false; } } diff --git a/templates/manifest.json b/templates/manifest.json index 0fdd7ed..483b314 100644 --- a/templates/manifest.json +++ b/templates/manifest.json @@ -1,7 +1,7 @@ { "templates": { "ca3": { - "current_version": "31", + "current_version": "30", "document_number": "10963*30", "description": "Official CA-3 VAT Declaration Template", "releases": { @@ -9,13 +9,7 @@ "download_url": "https://git.covago.com/frank/DeclarationTVA/raw/branch/main/templates/declarationtva/ca3_official_template.pdf", "checksum": "sha256:placeholder_checksum_here", "release_date": "2025-01-27", - "description": "Initial CA-3 template version 30" - }, - "31": { - "download_url": "https://git.covago.com/frank/DeclarationTVA/raw/branch/main/templates/declarationtva/ca3_official_template.pdf", - "checksum": "sha256:placeholder_checksum_here", - "release_date": "2025-01-27", - "description": "Updated CA-3 template version 31" + "description": "Official CA-3 template version 30" } } }