From c67fd39fbe69860d4e90769693553f3cdf866bac Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Wed, 8 Oct 2025 12:33:59 +0200 Subject: [PATCH] v2.5.5: Thin border consistency across all PDF elements - Set all borders to thin (0.1) throughout the entire PDF - All table cells, titles, and separators now use consistent thin borders - Detailed page tables now have the same border thickness as first page tables - Clean, professional appearance with consistent thin borders - Updated module version to 2.5.5 --- ChangeLog.md | 8 ++++++++ core/class/declarationtva_pdf.class.php | 10 ++++++++-- core/modules/modDeclarationTVA.class.php | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index a08680e..20d2360 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,13 @@ # CHANGELOG MODULE DECLARATIONTVA FOR [DOLIBARR ERP CRM](https://www.dolibarr.org) +## 2.5.5 + +### UI/UX Improvements +- **Thin Border Consistency**: Set all borders to thin (0.1) throughout the entire PDF +- **Professional Appearance**: All table cells, titles, and separators now use consistent thin borders +- **Visual Harmony**: Detailed page tables now have the same border thickness as first page tables +- **Clean Layout**: Consistent thin borders throughout the entire PDF document + ## 2.5.4 ### UI/UX Improvements diff --git a/core/class/declarationtva_pdf.class.php b/core/class/declarationtva_pdf.class.php index 602268b..18c087f 100644 --- a/core/class/declarationtva_pdf.class.php +++ b/core/class/declarationtva_pdf.class.php @@ -822,6 +822,9 @@ class DeclarationTVA_PDF $pdf->SetHeaderMargin(5); $pdf->SetFooterMargin(10); + // Set thin borders for all elements + $pdf->SetLineWidth(0.1); + // Add a page $pdf->AddPage(); @@ -999,9 +1002,9 @@ class DeclarationTVA_PDF $pdf->SetFillColor(240, 240, 240); // Light gray background $pdf->Cell(0, 10, 'Détail de la ligne ' . $line_code, 1, 1, 'C', true); - // Add separator line + // Add separator line (thin border) $pdf->SetDrawColor(0, 0, 0); - $pdf->SetLineWidth(0.5); + $pdf->SetLineWidth(0.1); // Thin border $pdf->Line($pdf->getMargins()['left'], $pdf->GetY(), $pdf->getPageWidth() - $pdf->getMargins()['right'], $pdf->GetY()); $pdf->Ln(5); @@ -1407,6 +1410,9 @@ class DeclarationTVA_PDF $pdf->SetHeaderMargin(5); $pdf->SetFooterMargin(10); + // Set thin borders for all elements + $pdf->SetLineWidth(0.1); + // Add title page $pdf->AddPage(); $pdf->SetFont('helvetica', 'B', 16); diff --git a/core/modules/modDeclarationTVA.class.php b/core/modules/modDeclarationTVA.class.php index d6338d2..d208a46 100644 --- a/core/modules/modDeclarationTVA.class.php +++ b/core/modules/modDeclarationTVA.class.php @@ -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.4'; + $this->version = '2.5.5'; // Url to the file with your last numberversion of this module //$this->url_last_version = 'http://www.example.com/versionmodule.txt';