v2.5.14: Fixed company information in PDF footer

- Now uses main company entity (1) instead of current entity
- PDF footer now shows the actual Dolibarr company, not first client
- Uses main company entity for consistent company information
- Company name in PDF footer now matches the actual Dolibarr company
- Updated module version to 2.5.14
This commit is contained in:
Frank Cools 2025-10-08 12:51:17 +02:00
parent 5edb85872b
commit 024bc785f3
3 changed files with 13 additions and 5 deletions

View File

@ -1,5 +1,13 @@
# CHANGELOG MODULE DECLARATIONTVA FOR [DOLIBARR ERP CRM](https://www.dolibarr.org)
## 2.5.14
### Bug Fixes
- **Fixed Company Information**: Now uses main company entity (1) instead of current entity
- **Correct Company Data**: PDF footer now shows the actual Dolibarr company, not first client
- **Proper Entity Selection**: Uses main company entity for consistent company information
- **Accurate Footer**: Company name in PDF footer now matches the actual Dolibarr company
## 2.5.13
### Bug Fixes

View File

@ -159,9 +159,9 @@ class DeclarationTVA_PDF
return false;
}
// Get company information
// Get company information - use main company entity (1) instead of current entity
$company = new Societe($this->db);
$company->fetch($conf->entity);
$company->fetch(1); // Main company entity
// Generate PDF filename
$filename = 'CA3_' . $declaration->declaration_number . '_' . date('Y-m-d') . '.pdf';
@ -216,9 +216,9 @@ class DeclarationTVA_PDF
return false;
}
// Get company information
// Get company information - use main company entity (1) instead of current entity
$company = new Societe($this->db);
$company->fetch($conf->entity);
$company->fetch(1); // Main company entity
// Generate PDF filename
$filename = 'CA3_' . $declaration->declaration_number . '_' . date('Y-m-d') . '.pdf';

View File

@ -76,7 +76,7 @@ class modDeclarationTVA extends DolibarrModules
$this->editor_squarred_logo = ''; // Must be image filename into the module/img directory followed with @modulename. Example: 'myimage.png@declarationtva'
// Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated', 'experimental_deprecated' or a version string like 'x.y.z'
$this->version = '2.5.13';
$this->version = '2.5.14';
// Url to the file with your last numberversion of this module
//$this->url_last_version = 'http://www.example.com/versionmodule.txt';