v2.5.20: Fixed table subtitle positioning for proper alignment
- Added SetX positioning to match table alignment for subtitles - 'Comptes de base (ventes)' and 'Comptes de TVA' subtitles now properly positioned - Subtitles use same X positioning as center-aligned table - Table and subtitles now have consistent positioning and alignment - Updated module version to 2.5.20
This commit is contained in:
parent
08d60e15df
commit
3835d5f304
@ -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.20
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
- **Fixed Table Subtitle Positioning**: Added SetX positioning to match table alignment for subtitles
|
||||||
|
- **Improved Visual Consistency**: "Comptes de base (ventes)" and "Comptes de TVA" subtitles now properly positioned
|
||||||
|
- **Better Layout Alignment**: Subtitles use same X positioning as center-aligned table
|
||||||
|
- **Enhanced Visual Harmony**: Table and subtitles now have consistent positioning and alignment
|
||||||
|
|
||||||
## 2.5.19
|
## 2.5.19
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@ -1166,6 +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->SetX($start_x); // Position to match table alignment
|
||||||
$pdf->Cell($table_width, 6, 'Comptes de base (ventes)', 1, 1, 'C', true);
|
$pdf->Cell($table_width, 6, 'Comptes de base (ventes)', 1, 1, 'C', true);
|
||||||
|
|
||||||
$pdf->SetFont('helvetica', '', 7);
|
$pdf->SetFont('helvetica', '', 7);
|
||||||
@ -1194,6 +1195,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->SetX($start_x); // Position to match table alignment
|
||||||
$pdf->Cell($table_width, 6, 'Comptes de TVA', 1, 1, 'C', true);
|
$pdf->Cell($table_width, 6, 'Comptes de TVA', 1, 1, 'C', true);
|
||||||
|
|
||||||
$pdf->SetFont('helvetica', '', 7);
|
$pdf->SetFont('helvetica', '', 7);
|
||||||
|
|||||||
@ -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.19';
|
$this->version = '2.5.20';
|
||||||
// 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';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user