DeclarationTVA/sql
Frank Cools c74e09993f Add database debugging and fix schema for multiple accounts
Database Schema Fix:
- Fixed unique constraint to allow multiple accounts per CA-3 line
- Changed from (entity, ca3_line) to (entity, ca3_line, account_code)
- Added migration script to update existing tables
- Updated table comments to reflect new CA-3 line structure

Debug Features Added:
- Database operation logging in updateAccountMapping method
- Table existence and structure checking in setup page
- Detailed error logging for SQL operations
- Form data processing visibility

The issue was likely the unique constraint preventing multiple accounts per line!
2025-10-02 17:30:55 +02:00
..
dolibarr_allversions.sql Create comprehensive database schema for DeclarationTVA module 2025-10-02 16:09:59 +02:00
migration_fix_account_mappings.sql Add database debugging and fix schema for multiple accounts 2025-10-02 17:30:55 +02:00
mvp_schema.sql Add database debugging and fix schema for multiple accounts 2025-10-02 17:30:55 +02:00