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
This commit is contained in:
Frank Cools 2025-10-08 12:33:59 +02:00
parent 3474cebd13
commit c67fd39fbe
3 changed files with 17 additions and 3 deletions

View File

@ -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

View File

@ -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);

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.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';