DeclarationTVA/ChangeLog.md
Frank Cools 632c77d335 v2.5.1: Enhanced PDF layout with light gray section backgrounds
- Added light gray backgrounds to all section titles in detailed pages
- Enhanced visual hierarchy for better readability
- Improved professional appearance of PDF exports
- Updated module version to 2.5.1
2025-10-08 12:21:26 +02:00

131 lines
7.1 KiB
Markdown

# CHANGELOG MODULE DECLARATIONTVA FOR [DOLIBARR ERP CRM](https://www.dolibarr.org)
## 2.5.1
### UI/UX Improvements
- **PDF Layout Enhancement**: Added light gray backgrounds to section titles in detailed pages
- **Visual Hierarchy**: Improved readability with distinct section headers
- **Professional Appearance**: Enhanced PDF presentation with consistent styling
## 2.5.0
### New Features
- **Journal Configuration Tab**: Complete journal account configuration system
- **Bank Account Configuration**: Configurable bank account for VAT payments/receipts
- **Auto-Create Accounting**: Toggle for automatic accounting entry creation on submission
- **Amount Calculation Method**: Configurable rounding vs truncation for French CA-3 compliance
- **Configurable Journal Accounts**: All journal accounts (VAT, charges, products) are now configurable
- **Database Auto-Creation**: Automatic table creation and default value setup
### Technical Improvements
- **Configuration Management**: Centralized configuration system with database storage
- **Account Loading**: Improved accounting account retrieval with proper ordering
- **Form Handling**: Fixed action processing outside tab logic for reliable form submission
- **Database Schema**: Auto-creation of missing tables with proper structure
- **Error Handling**: Comprehensive error handling and user feedback
### Bug Fixes
- **Configuration Persistence**: Fixed configuration saving issues
- **Account Display**: Resolved uppercase account label display in dropdowns
- **Form Actions**: Corrected action handling placement for reliable form processing
- **Database Tables**: Automatic creation of missing configuration tables
## 2.4.0
### New Features
- **Template Management System**: Complete online template management with Gitea integration
- **Minor Version System**: Major.minor versioning for template updates (30.1, 30.2, etc.)
- **Automatic Updates**: Other installations can automatically update templates
- **Template Reset**: "REVENIR AU MODELE OFFICIEL" functionality for template management
- **Configuration Tabs**: Separated PCG mapping and template management into distinct tabs
### Technical Improvements
- **Gitea Integration**: Online template distribution and version checking
- **Template Path Resolution**: Fixed template loading for PDF generation
- **Action Handling**: Improved template action processing outside tab logic
- **Version Management**: Comprehensive template versioning system
- **Fallback System**: Robust offline/online template management
### Bug Fixes
- **Template Recognition**: Fixed official template recognition for PDF generation
- **Path Resolution**: Corrected template path calculation for different directory structures
- **Action Processing**: Fixed template reset and update actions
- **PDF Generation**: Resolved missing CA-3 pages in PDF output
- **Template Loading**: Fixed template file detection and loading
### Template Updates
- **Version 30.2**: Updated official CA-3 template with corrected field positioning
- **Template Maintenance**: Added comprehensive maintenance manual
- **Version Control**: Implemented minor version system for template fixes
## 2.3.0
### New Features
- **Declaration Validation**: Complete validation workflow with confirmation dialogs
- **PDF Document Management**: Automatic PDF generation and storage for validated declarations
- **Document Download**: Secure PDF download system with proper authentication
- **Status Management**: Visual status indicators and proper workflow separation
- **Clean UI**: Streamlined interface with working actions only
### Technical Improvements
- **Database Migration**: Added validation tracking with proper database schema
- **Secure Downloads**: Token-based authentication for PDF downloads
- **Error Handling**: Comprehensive error handling without debug clutter
- **File Management**: Proper document storage in structured directories
- **UI Cleanup**: Removed non-working actions and streamlined interface
### Bug Fixes
- **Fixed Token Validation**: Resolved download handler authentication issues
- **Fixed PDF Detection**: Improved file pattern matching for document detection
- **Fixed Path Resolution**: Corrected file paths for document storage and access
- **Removed Debug Code**: Cleaned up production code from debugging statements
- **Fixed Button Actions**: Removed non-working buttons from declaration list
## 2.1.0
### New Features
- **Enhanced PDF Export**: CA-3 form now includes detailed breakdown pages in a single comprehensive PDF
- **Detailed Breakdown Pages**: Account-level details for each CA-3 line showing exactly where amounts come from
- **Improved PDF Merging**: Uses pdftk for reliable PDF merging that preserves form fields
- **Conditional Page Breaks**: Optimized page usage to reduce paper consumption
- **Enhanced Line Calculations**: Added support for lines 25, 26, 27, TD, 28, 32 with proper conditional visibility
- **Status Translation**: Proper French translation of declaration status in detailed PDFs
### Technical Improvements
- **Better Error Handling**: Comprehensive logging and debugging for PDF generation
- **Form Field Preservation**: pdftk-based merging maintains all form data integrity
- **Modular PDF Generation**: Separate detailed PDF generation with fallback options
- **Enhanced Debugging**: Detailed logging for troubleshooting PDF generation issues
### Bug Fixes
- **Fixed Multi-Select Saving**: Configuration fields now properly save when all selections are removed
- **Fixed PDF Merge Issues**: Resolved pdftk filename conflicts that prevented detailed pages from being added
- **Fixed Status Translation**: Eliminated "Call to a member function trans() on null" errors
- **Fixed Form Corruption**: Prevented FPDI merge from corrupting filled form data
## 1.1
### New Features
- **Enhanced PDF Export**: CA-3 form now includes detailed breakdown pages in a single comprehensive PDF
- **Detailed Breakdown Pages**: Account-level details for each CA-3 line showing exactly where amounts come from
- **Improved PDF Merging**: Uses pdftk for reliable PDF merging that preserves form fields
- **Conditional Page Breaks**: Optimized page usage to reduce paper consumption
- **Enhanced Line Calculations**: Added support for lines 25, 26, 27, TD, 28, 32 with proper conditional visibility
- **Status Translation**: Proper French translation of declaration status in detailed PDFs
### Technical Improvements
- **Better Error Handling**: Comprehensive logging and debugging for PDF generation
- **Form Field Preservation**: pdftk-based merging maintains all form data integrity
- **Modular PDF Generation**: Separate detailed PDF generation with fallback options
- **Enhanced Debugging**: Detailed logging for troubleshooting PDF generation issues
### Bug Fixes
- **Fixed Multi-Select Saving**: Configuration fields now properly save when all selections are removed
- **Fixed PDF Merge Issues**: Resolved pdftk filename conflicts that prevented detailed pages from being added
- **Fixed Status Translation**: Eliminated "Call to a member function trans() on null" errors
- **Fixed Form Corruption**: Prevented FPDI merge from corrupting filled form data
## 1.0
Initial version