Commit Graph

6 Commits

Author SHA1 Message Date
0bcbc3eac5 Fix right alignment for amount column using inline CSS
Fixed:
- Replaced class='right' with style='text-align: right;' for all amount columns
- Applied to header, data rows, subtotals, and grand total
- This ensures proper right alignment regardless of Dolibarr CSS classes
- All monetary values now display consistently right-aligned

The inline CSS approach guarantees the alignment works across different Dolibarr themes and configurations.
2025-10-02 23:45:11 +02:00
51f43c911f Simplify account details display to show only relevant amounts
Fixed:
- Removed confusing 'Base hors taxe', 'Montant de la TVA', 'Montant Total' columns
- Now shows only: Account Code, Account Label, Amount, Mapping Type
- BASE accounts show base amounts
- VAT accounts show VAT amounts
- Other accounts show VAT amounts (for consistency)
- Updated colspan for section headers (4 columns instead of 6)
- Simplified subtotals and grand total

This eliminates the confusion of showing the same values in multiple columns for individual accounts.
2025-10-02 23:41:24 +02:00
e78e6061a8 Split totals for BASE and VAT accounts in CA-3 line details
Fixed:
- Separated totals for BASE accounts vs VAT accounts
- Added subtotal rows for each account type
- Clear visual separation between base and VAT contributions
- Added 'Grand Total' row showing combined totals
- Added translations for subtotal labels

This eliminates confusion by showing:
- Subtotal for BASE accounts (sales amounts)
- Subtotal for VAT accounts (VAT amounts)
- Grand Total (combined total)

Users can now clearly see which accounts contribute to base vs VAT amounts.
2025-10-02 23:29:57 +02:00
84017f33ce Improve CA-3 line details display with proper account grouping
Fixed:
- Grouped BASE and VAT accounts separately for lines 08, 09, 9B
- Added clear section headers: 'Base Accounts (Sales)' and 'VAT Accounts'
- Improved visual organization of account breakdown
- Removed debugging code
- Added translations for new section headers

This ensures users can clearly see which accounts contribute to base amounts vs VAT amounts for the special lines.
2025-10-02 23:28:07 +02:00
24890aae71 Fix CA-3 line details mapping logic and add debugging
Fixed:
- Updated getCA3LineDetails() to handle special cases for lines 08, 09, 9B
- These lines have _BASE and _VAT suffixes in the database
- Added proper matching logic for both normal lines and special cases
- Added debugging to AJAX endpoint and backend method
- Added error logging to trace mapping issues

This should fix the issue where only A1 works but other lines show no accounts.
2025-10-02 23:24:46 +02:00
f39a7f140a Implement inline dropdown panels for CA-3 line details
Features:
- Replaced separate page with inline dropdown panels
- Click any CA-3 line code to expand/collapse account details
- AJAX loading of account breakdown data
- Professional styling matching Dolibarr UI
- JavaScript toggle functionality with loading states
- Account details table with:
  * Account codes and labels
  * Base amounts, VAT amounts, total amounts
  * Mapping types and totals
  * Summary information
- Removed separate line details page
- Added comprehensive translations for dropdown interface

This provides seamless inline access to account breakdowns without page navigation.
2025-10-02 23:21:09 +02:00