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
This commit is contained in:
parent
86b3cfe639
commit
a520248a04
@ -64,7 +64,7 @@ class DeclarationTVA_PDF
|
|||||||
/**
|
/**
|
||||||
* @var string Template version
|
* @var string Template version
|
||||||
*/
|
*/
|
||||||
public $template_version = '31';
|
public $template_version = '30';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Template document number
|
* @var string Template document number
|
||||||
@ -1547,7 +1547,7 @@ class DeclarationTVA_PDF
|
|||||||
}
|
}
|
||||||
if ($manifest_content === false) {
|
if ($manifest_content === false) {
|
||||||
$update_info['error'] = 'Failed to fetch manifest from Gitea and local file not found';
|
$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) {
|
if ($template_content === false) {
|
||||||
$this->error = 'Failed to download template from Gitea and local file not found';
|
$this->error = 'Failed to download template from Gitea and local file not found';
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"templates": {
|
"templates": {
|
||||||
"ca3": {
|
"ca3": {
|
||||||
"current_version": "31",
|
"current_version": "30",
|
||||||
"document_number": "10963*30",
|
"document_number": "10963*30",
|
||||||
"description": "Official CA-3 VAT Declaration Template",
|
"description": "Official CA-3 VAT Declaration Template",
|
||||||
"releases": {
|
"releases": {
|
||||||
@ -9,13 +9,7 @@
|
|||||||
"download_url": "https://git.covago.com/frank/DeclarationTVA/raw/branch/main/templates/declarationtva/ca3_official_template.pdf",
|
"download_url": "https://git.covago.com/frank/DeclarationTVA/raw/branch/main/templates/declarationtva/ca3_official_template.pdf",
|
||||||
"checksum": "sha256:placeholder_checksum_here",
|
"checksum": "sha256:placeholder_checksum_here",
|
||||||
"release_date": "2025-01-27",
|
"release_date": "2025-01-27",
|
||||||
"description": "Initial CA-3 template version 30"
|
"description": "Official 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"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user