diff --git a/ChangeLog.md b/ChangeLog.md index d561e00..2477dc8 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,13 @@ # CHANGELOG MODULE DECLARATIONTVA FOR [DOLIBARR ERP CRM](https://www.dolibarr.org) +## 2.5.7 + +### UI/UX Improvements +- **Fixed Layout**: Restored summary information while keeping titles removed +- **Balanced Design**: Summary details (period, account count, calculated amount) are preserved +- **Clean Titles**: Only the redundant "Résumé de la ligne" titles were removed +- **Complete Information**: All important summary data is still displayed + ## 2.5.6 ### UI/UX Improvements diff --git a/core/class/declarationtva_pdf.class.php b/core/class/declarationtva_pdf.class.php index 80eac61..cc1d24c 100644 --- a/core/class/declarationtva_pdf.class.php +++ b/core/class/declarationtva_pdf.class.php @@ -1036,6 +1036,17 @@ class DeclarationTVA_PDF return; } + // Add line summary information (without title) + $pdf->SetFont('helvetica', '', 10); + $pdf->Cell(0, 6, 'Période: ' . dol_print_date($line_details['start_date'], 'day') . ' - ' . dol_print_date($line_details['end_date'], 'day'), 0, 1); + $pdf->Cell(0, 6, 'Nombre de comptes: ' . $line_details['account_count'], 0, 1); + + if (!empty($line_details['calculated_line'])) { + $calc = $line_details['calculated_line']; + $pdf->Cell(0, 6, 'Montant calculé: ' . price($calc->vat_amount, 0, '', 1, 0), 0, 1); + } + + $pdf->Ln(10); // Add account details table $this->addAccountDetailsTable($pdf, $line_details['account_details'], $line_code); diff --git a/core/modules/modDeclarationTVA.class.php b/core/modules/modDeclarationTVA.class.php index 0710a31..62d0a05 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.6'; + $this->version = '2.5.7'; // Url to the file with your last numberversion of this module //$this->url_last_version = 'http://www.example.com/versionmodule.txt';