Commit Graph

331 Commits

Author SHA1 Message Date
7f7aa5a9fc v2.5.23: Fixed footer page count using TCPDF placeholder
- Now uses TCPDF's {nb} placeholder for accurate total page count
- Footer now shows proper 'Page X/Y' format with correct total pages
- Fixed issue where total pages showed same as current page
- Footer now displays correct total page count using TCPDF's built-in mechanism
- Updated module version to 2.5.23
2025-10-08 13:12:12 +02:00
a8b2f19bae v2.5.22: Enhanced footer with total page count
- Footer now displays 'Page X/Y' format (e.g., 'Page 1/7')
- Professional PDF layout with total page count for better document navigation
- Users can now see current page and total pages in footer
- Enhanced footer provides complete page information
- Updated module version to 2.5.22
2025-10-08 13:09:50 +02:00
3da77d0e3f v2.5.21: Filtered zero-value accounts from PDF detailed pages
- Only accounts with non-zero amounts are now displayed in PDF detailed pages
- Eliminated display of accounts with 0.00 amounts to save paper and improve readability
- Resume now shows count of only non-zero accounts
- Detailed pages now contain only relevant accounts with actual values
- Improved PDF efficiency and cleaner output
- Updated module version to 2.5.21
2025-10-08 13:07:20 +02:00
3835d5f304 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
2025-10-08 13:04:52 +02:00
08d60e15df v2.5.19: Fixed table subtitle alignment for line 08 tables
- Table subtitles now center-aligned to match table alignment
- 'Comptes de base (ventes)' and 'Comptes de TVA' subtitles now properly centered
- Better layout alignment with center-aligned table for professional appearance
- Table and subtitles now have consistent center alignment
- Updated module version to 2.5.19
2025-10-08 13:03:00 +02:00
8aabfabd44 v2.5.18: Fixed table subtitle width for line 08 tables
- Table subtitles now use same width as table instead of stretching page-wide
- 'Comptes de base (ventes)' and 'Comptes de TVA' subtitles now properly aligned
- Better visual consistency with table width for professional appearance
- Table subtitles no longer extend beyond table boundaries
- Updated module version to 2.5.18
2025-10-08 13:01:37 +02:00
61b9a7d203 v2.5.17: Fixed line 08 amount display for mixed amount types
- Now shows separate base and VAT amounts for lines 08, 09, 9B
- Resume displays 'Montant de base: X | Montant de TVA: Y' for mixed amount lines
- More accurate amount display in PDF detailed pages
- Clear distinction between base and VAT amounts in line summaries
- Special handling for lines with both base and VAT amounts
- Updated module version to 2.5.17
2025-10-08 12:58:52 +02:00
68767840ac v2.5.16: Fixed line 08 resume display for mixed account types
- Now shows separate counts for base and VAT accounts for lines 08, 09, 9B
- Resume displays 'Comptes de base: X | Comptes de TVA: Y' for mixed account lines
- More accurate account breakdown in PDF detailed pages
- Clear distinction between base and VAT accounts in line summaries
- Special handling for lines with both base and VAT accounts
- Updated module version to 2.5.16
2025-10-08 12:57:15 +02:00
0b66cb4fd4 v2.5.15: Fixed company information source in PDF generation
- Now uses Dolibarr's $mysoc configuration instead of fetching separate company
- PDF footer now uses the same company data as CA-3 form filling
- Uses $mysoc (Dolibarr company config) for all company information
- Company name in PDF footer now matches the company used in CA-3 form
- Updated all method signatures and calls to use $mysoc consistently
- Removed duplicate company fetching and use consistent data source
2025-10-08 12:54:59 +02:00
024bc785f3 v2.5.14: Fixed company information in PDF footer
- Now uses main company entity (1) instead of current entity
- PDF footer now shows the actual Dolibarr company, not first client
- Uses main company entity for consistent company information
- Company name in PDF footer now matches the actual Dolibarr company
- Updated module version to 2.5.14
2025-10-08 12:51:17 +02:00
5edb85872b v2.5.13: Fixed class definition order for TCPDF dependency
- Moved custom PDF class definition after TCPDF include
- Custom class now extends TCPDF after it's properly loaded
- Fixed 'Class TCPDF not found' error by correct class definition order
- Custom PDF class now works with proper dependency loading
- Updated module version to 2.5.13
2025-10-08 12:49:03 +02:00
14427dec13 v2.5.12: Fixed TCPDF path error by removing duplicate include
- Removed incorrect TCPDF include since it's already loaded by Dolibarr
- Fixed 'Failed opening required' error for TCPDF file
- TCPDF is already available through Dolibarr's standard loading at line 69
- Custom PDF class now works without duplicate includes
- Updated module version to 2.5.12
2025-10-08 12:47:50 +02:00
85feea7cf3 v2.5.11: Fixed TCPDF class loading issue
- Added proper TCPDF include statement before custom class definition
- Ensured TCPDF is loaded before extending it with custom PDF class
- Fixed 'Class TCPDF not found' error
- Custom PDF class now works correctly with proper dependencies
- Updated module version to 2.5.11
2025-10-08 12:46:35 +02:00
ca2b6f11a1 v2.5.10: Fixed footer implementation using custom PDF class
- Fixed TCPDF footer implementation using proper Footer() method override
- Created DeclarationTVA_CustomPDF class extending TCPDF
- Removed incorrect setFooterCallback() calls that don't exist in TCPDF
- Company name and page numbering now work correctly on all pages
- Fixed 'Call to undefined method TCPDF::setFooterCallback()' error
- Updated module version to 2.5.10
2025-10-08 12:45:38 +02:00
348a2ecb1e v2.5.9: Custom footer with company name and page numbering
- Added company name on the left side of footer
- Page number remains on the right side of footer
- Footer uses same font size as summary information (size 7)
- Professional branding with company name on every page
- Enhanced footer layout for complete document identification
- Updated module version to 2.5.9
2025-10-08 12:41:16 +02:00
74875476f2 v2.5.8: Font size consistency for summary information
- Summary information now uses the same font size as tables (size 7)
- All text elements now have consistent typography
- Professional appearance with uniform font sizing throughout the PDF
- Summary text blends seamlessly with table content
- Updated module version to 2.5.8
2025-10-08 12:38:23 +02:00
326c965f45 v2.5.7: Fixed layout - restored summary information
- Restored summary information (period, account count, calculated amount)
- Only the redundant 'Résumé de la ligne' titles were removed
- Summary details are preserved for complete information
- Balanced design with clean titles but complete data
- Updated module version to 2.5.7
2025-10-08 12:36:59 +02:00
c2cfb29aa1 v2.5.6: Cleaner PDF layout by removing redundant titles
- Removed redundant 'Résumé de la ligne' titles from detailed pages
- Eliminated unnecessary summary sections to reduce clutter
- Users can now focus directly on the account details tables
- Cleaner, more professional appearance without redundant information
- Updated module version to 2.5.6
2025-10-08 12:35:32 +02:00
c67fd39fbe 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
2025-10-08 12:33:59 +02:00
3474cebd13 v2.5.4: Perfect table column width consistency across all PDF pages
- Updated detailed page tables to match first page column widths exactly
- All tables now use identical column proportions (20, 60, 40)
- Detailed page tables now have the same width and proportions as journal tables
- Consistent table sizing throughout the entire PDF
- Updated module version to 2.5.4
2025-10-08 12:31:42 +02:00
cc5ab9a062 v2.5.3: Perfect table styling consistency across all PDF pages
- Updated detailed page tables to match first page font sizes exactly
- All tables now use identical styling (font size 7, proper spacing)
- Detailed page tables now look identical to journal tables
- Consistent typography and spacing throughout the entire PDF
- Updated module version to 2.5.3
2025-10-08 12:27:10 +02:00
33897b335e v2.5.2: Professional table styling across all PDF pages
- Applied consistent table styling from journal tables to all tables
- Enhanced visual consistency throughout the entire PDF document
- White backgrounds for data rows, light gray for headers and subtotals
- Unified professional appearance across all pages
- Updated module version to 2.5.2
2025-10-08 12:24:09 +02:00
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
f5f1169496 Version 2.5.0: Journal Configuration System
- Add complete journal configuration tab with account selection
- Add bank account configuration for VAT payments/receipts
- Add auto-create accounting toggle for submission
- Add configurable amount calculation method (round vs truncate)
- Add automatic database table creation and default values
- Fix configuration persistence and form handling
- Improve account loading with proper ordering
- Add comprehensive error handling and user feedback
- Update module version to 2.5.0
2025-10-08 11:48:33 +02:00
1fe5791e99 Bump module version to 2.4.0
- Update module version from 2.3.0 to 2.4.0
- Add comprehensive changelog for version 2.4.0
- Document template management system features
- Document minor version system implementation
- Document bug fixes and technical improvements
- Document template updates and maintenance manual
2025-10-08 01:41:15 +02:00
fc6e2f6f6a Update template to version 30.2
- Bump template version from 30.1 to 30.2
- Update manifest.json with new version 30.2
- Add release entry for corrected template
- Template now includes proper field positioning
- Other installations will auto-update to version 30.2
2025-10-08 01:39:39 +02:00
c36b9c436b Fix official template recognition for PDF generation
- Update isFillablePDF() to recognize ca3_official_template.pdf
- Ensure official template is used for CA-3 form generation
- Fix missing CA-3 pages in PDF output
- Use official template instead of falling back to basic PDF generation
2025-10-08 01:36:11 +02:00
82a996700e Fix template path resolution for PDF generation
- Use realpath() to get absolute path to templates directory
- Fix template loading for CA-3 PDF generation
- Resolve template path mismatch issue
- Ensure official template is found and used correctly
2025-10-08 01:33:07 +02:00
c471defd25 Implement minor version system for template management
- Add major.minor version format (30.1)
- Keep government version as major number (30)
- Use minor version for fixes and improvements (.1, .2, .3)
- Update manifest.json with minor version system
- Add practical examples to maintenance manual
- Enable automatic updates for template fixes
- Maintain government version compliance
2025-10-08 01:26:12 +02:00
e8cbd9b3df Add comprehensive template maintenance manual
- Complete guide for updating official CA-3 templates
- Step-by-step instructions for template management
- Version control and file structure documentation
- Troubleshooting guide and best practices
- Quick reference checklist for template updates
2025-10-08 01:21:29 +02:00
3631b33079 Remove debug code from template management
- Remove debug logging from action handling
- Remove debug logging from template reset method
- Remove debug logging from template info method
- Clean up production code after successful debugging
2025-10-08 01:19:51 +02:00
e8f9ab260a Fix template action handling by moving outside tab logic
- Move template actions (upload, reset, update) outside tab conditional blocks
- Ensure template actions are processed regardless of active tab
- Fix REVENIR AU MODELE OFFICIEL button functionality
- Remove duplicate action handlers from templates tab section
2025-10-08 01:18:52 +02:00
39ddbaac49 Add debugging to action handling
- Add debug logging to track received actions
- Debug action processing flow
- Identify why reset_template action is not being processed
2025-10-08 01:17:55 +02:00
9f634d2998 Add debugging to template reset action handler
- Add debug logging to reset_template action
- Track if reset action is being triggered
- Debug action handling flow
2025-10-08 01:16:56 +02:00
d48800a849 Add debugging to template reset functionality
- Add debug logging to resetToDefaultTemplate method
- Add debug logging to getTemplateInfo method
- Track template path resolution and file operations
- Debug REVENIR AU MODELE OFFICIEL button issues
2025-10-08 01:16:08 +02:00
5ea9b31a7d Fix template path for reset functionality
- Update template_path to use relative path from class file
- Fix REVENIR AU MODELE OFFICIEL button functionality
- Ensure template detection works correctly
- Resolve template path mismatch issue
2025-10-08 01:13:45 +02:00
a520248a04 Revert to official government version 30
- Keep template version at 30 (official government version)
- Remove version 31 entry from manifest
- Maintain official CA-3 template version 30
- Template version should match government document version
2025-10-08 01:11:10 +02:00
86b3cfe639 Update template version to 31
- Update hardcoded template version in PDF class to 31
- Update manifest.json current_version to 31
- Add new release entry for version 31
- Enable version checking and update notifications
2025-10-08 01:09:52 +02:00
afd681a057 Add official CA-3 template and update manifest
- Add ca3_official_template.pdf as the official template
- Update manifest.json to point to the official template
- Enable online template updates with the official template
- Template now available for download from Gitea
2025-10-08 01:07:56 +02:00
fa4c3b6317 Update manifest to point to existing custom template
- Fix manifest download URL to point to ca3_custom_template.pdf
- Enable online template updates with existing template file
- Resolve template download issues for other installations
2025-10-08 01:02:59 +02:00
e2cf7bfe9b Improve error messaging for Gitea access issues
- Add more descriptive error messages for Gitea server access problems
- Indicate potential causes: private repository or server configuration
- Help users understand why online template updates may not work
- Maintain functionality with local fallback
2025-10-07 20:26:01 +02:00
abd4156a88 Improve template management with better fallback messaging
- Add informative messages when using local files due to Gitea inaccessibility
- Provide clear feedback about fallback behavior
- Maintain functionality even when Gitea server is not accessible
- Support both online and offline template management scenarios
2025-10-07 20:23:52 +02:00
f10f402073 Fix template management with online/offline fallback
- Try to fetch manifest from Gitea first, fallback to local if not accessible
- Try to download templates from Gitea first, fallback to local if not accessible
- Support both online template updates and offline functionality
- Enable other installations to check for template updates when online
- Provide reliable fallback for offline installations
2025-10-07 20:21:47 +02:00
96dc421177 Fix Gitea manifest fetching error in template management
- Replace Gitea manifest fetching with local manifest file
- Use local template files instead of downloading from Gitea
- Fix 'Failed to fetch manifest from Gitea' error in template management tab
- Use local files for template updates instead of external Gitea server
- Improve reliability by removing external dependencies
2025-10-07 20:20:13 +02:00
6178d9bdb7 Fix Update Configuration button translation and remove title
- Remove 'Actions' title from configuration page
- Add missing UpdateConfiguration translation to French and English
- Fix button text to display properly in both languages
- Clean up configuration page by removing unnecessary title
2025-10-07 20:17:35 +02:00
6de32d198f Remove redundant current configuration summary section
- Remove the 'Current Configuration' section that duplicated information
- Users can see their configuration directly in the form above
- Simplify configuration page by removing redundant summary
- Improve user experience with cleaner, more focused interface
2025-10-07 20:15:50 +02:00
62a0b5dba2 Remove D section from configuration page
- Remove D section (calculated lines) from configuration interface
- Remove D section from section headers configuration
- Simplify configuration page by removing unnecessary calculated section
- Clean up interface to show only configurable sections (A and B)
2025-10-07 20:14:31 +02:00
8eaf68f544 Fix empty title line display
- Add condition to only show description when it's not empty
- Prevent empty description lines from being displayed
- Clean up configuration page by removing empty title lines
- Improve user experience with cleaner interface
2025-10-07 20:13:20 +02:00
f7e90c59b6 Completely remove all section descriptions and references
- Remove 'HT amounts of all taxable operations' description
- Remove all section descriptions (A, B, D sections)
- Fix 'Référence:' display to only show when notice is not empty
- Clean up configuration page completely by removing all technical text
- Simplify interface to show only section titles
2025-10-07 20:12:22 +02:00
8a498cb3f5 Remove Notice 4722 references from section headers
- Remove 'Notice 4722 (3310-CA3-SD)' from section A description
- Remove 'Notice 4722 - Summary Table CA3 (3310-CA3-SD)' reference
- Remove 'Notice 4722 - VAT Due Calculation' reference
- Remove 'Notice 4722 - Final Result' reference
- Clean up configuration page by removing technical notice references
- Simplify section descriptions for better user experience
2025-10-07 20:11:28 +02:00