v2.5.18: Fixed table subtitle width for line 08 tables

- Table subtitles now use same width as table instead of stretching page-wide
- 'Comptes de base (ventes)' and 'Comptes de TVA' subtitles now properly aligned
- Better visual consistency with table width for professional appearance
- Table subtitles no longer extend beyond table boundaries
- Updated module version to 2.5.18
This commit is contained in:
Frank Cools 2025-10-08 13:01:37 +02:00
parent 61b9a7d203
commit 8aabfabd44
3 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,13 @@
# CHANGELOG MODULE DECLARATIONTVA FOR [DOLIBARR ERP CRM](https://www.dolibarr.org) # CHANGELOG MODULE DECLARATIONTVA FOR [DOLIBARR ERP CRM](https://www.dolibarr.org)
## 2.5.18
### Bug Fixes
- **Fixed Table Subtitle Width**: Table subtitles now use same width as table instead of stretching page-wide
- **Improved Table Layout**: "Comptes de base (ventes)" and "Comptes de TVA" subtitles now properly aligned
- **Better Visual Consistency**: Subtitles match table width for professional appearance
- **Enhanced Layout**: Table subtitles no longer extend beyond table boundaries
## 2.5.17 ## 2.5.17
### Bug Fixes ### Bug Fixes

View File

@ -1166,7 +1166,7 @@ class DeclarationTVA_PDF
if (!empty($base_accounts)) { if (!empty($base_accounts)) {
$pdf->SetFont('helvetica', 'B', 7); $pdf->SetFont('helvetica', 'B', 7);
$pdf->SetFillColor(245, 245, 245); // Light gray background $pdf->SetFillColor(245, 245, 245); // Light gray background
$pdf->Cell(0, 6, 'Comptes de base (ventes)', 1, 1, 'L', true); $pdf->Cell($table_width, 6, 'Comptes de base (ventes)', 1, 1, 'L', true);
$pdf->SetFont('helvetica', '', 7); $pdf->SetFont('helvetica', '', 7);
foreach ($base_accounts as $account) { foreach ($base_accounts as $account) {
@ -1194,7 +1194,7 @@ class DeclarationTVA_PDF
if (!empty($vat_accounts)) { if (!empty($vat_accounts)) {
$pdf->SetFont('helvetica', 'B', 7); $pdf->SetFont('helvetica', 'B', 7);
$pdf->SetFillColor(245, 245, 245); // Light gray background $pdf->SetFillColor(245, 245, 245); // Light gray background
$pdf->Cell(0, 6, 'Comptes de TVA', 1, 1, 'L', true); $pdf->Cell($table_width, 6, 'Comptes de TVA', 1, 1, 'L', true);
$pdf->SetFont('helvetica', '', 7); $pdf->SetFont('helvetica', '', 7);
foreach ($vat_accounts as $account) { foreach ($vat_accounts as $account) {

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' $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' // Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated', 'experimental_deprecated' or a version string like 'x.y.z'
$this->version = '2.5.17'; $this->version = '2.5.18';
// Url to the file with your last numberversion of this module // Url to the file with your last numberversion of this module
//$this->url_last_version = 'http://www.example.com/versionmodule.txt'; //$this->url_last_version = 'http://www.example.com/versionmodule.txt';