Commit Graph

255 Commits

Author SHA1 Message Date
d7bb9d23e8 Complete CA-3 configuration interface with all sections and headers
Configuration Interface Improvements:
- Added all missing CA-3 lines from planning document
- Implemented proper section headers (A, B, C, D)
- Added section descriptions for better understanding
- Organized lines by section for logical grouping

CA-3 Lines Added:
- A1, A2: Taxable operations base amounts
- B1-B4: VAT rate breakdowns (20%, 10%, 5.5%, 2.1%)
- 05, 06: Intra-EU operations (B2B)
- 17: VAT due on intra-EU acquisitions
- 20, 21: Deductible VAT (fixed assets, other)
- 22, 28, 29: Result calculations

Section Headers:
- A. Opérations imposables (Taxable Operations)
- B. TVA due (VAT Due)
- C. TVA déductible (Deductible VAT)
- D. Résultat (Result)

Enhanced Features:
- Section-based organization in configuration
- Type indicators (Base/VAT) for each line
- Improved visual layout with section headers
- Better grouping in current configuration display

Language Support:
- Added English translations for all new labels
- Added French translations for all new labels
- Consistent terminology across both languages

The configuration page now shows the complete CA-3 structure as defined in the planning document!
2025-10-02 16:36:12 +02:00
e91f0dc3b0 Fix module permissions for MVP access
Permission System Fixes:
- Uncommented and updated module permissions
- Added proper permission levels: read, write, delete, admin
- Updated permission names from 'myobject' to 'declarationtva'
- Fixed menu permission checks

Permission Levels:
- Read: Access to view declarations and periods
- Write: Create and update declarations
- Delete: Remove declarations and periods
- Admin: Access to configuration and setup

Access Control Updates:
- Updated setup_mvp.php to use correct permission check
- Updated declarationtvaindex.php to use correct permission check
- Menu entries now use proper permission validation

Testing Instructions:
1. Disable and re-enable the module to refresh permissions
2. Go to Home -> Users -> admin user
3. Check DeclarationTVA permissions are enabled
4. Try accessing the configuration page again

The module should now be accessible with proper permissions!
2025-10-02 16:28:27 +02:00
a419fcfc15 Fix module configuration and menu setup
Module Configuration Fixes:
- Changed config_page_url from setup.php to setup_mvp.php
- Now points to our custom MVP configuration page
- Users will see our PCG account mapping interface

Menu Configuration:
- Added main interface menu entry
- Points to /custom/declarationtva/declarationtvaindex.php
- Commented out unused menu entries
- Main menu will show 'DeclarationTVA' with our interface

Testing Instructions:
1. Disable and re-enable the module to refresh menu
2. Configuration button should now show our custom setup page
3. Main menu should show 'DeclarationTVA' entry
4. Clicking the menu should open our main interface

The module is now properly configured for MVP testing!
2025-10-02 16:24:33 +02:00
8e71a12000 Phase 1 MVP - Core foundation complete
MVP Database Schema:
- Simplified database schema for MVP development
- Core tables: config, account_mappings, periods, declarations, ca3_lines
- Basic indexes for performance
- Initial configuration data

Core PHP Classes:
- DeclarationTVA: Main class for CA-3 processing
- DeclarationTVA_Config: Configuration management
- DeclarationTVA_Period: Period management
- Complete CRUD operations for all entities

Main Interface:
- declarationtvaindex.php: Main module interface
- Period management and declaration creation
- Status tracking (draft, validated, submitted)
- Basic action handling

Configuration Interface:
- setup_mvp.php: Simplified configuration page
- PCG account mapping for all CA-3 lines
- Account selection from Dolibarr chart of accounts
- VAT rate configuration

Key Features Implemented:
- Basic CA-3 form generation
- PCG account mapping (one account per line for MVP)
- Period management (quarterly)
- Declaration status tracking
- Configuration interface
- Account validation against Dolibarr

Next Steps:
- CA-3 form generation logic
- PDF export functionality
- Testing with sample data

MVP Progress: 60% complete
Core foundation ready for testing and refinement
2025-10-02 16:16:15 +02:00
711e68ba92 Initial commit: DeclarationTVA Dolibarr module
- Add core module structure
- Include admin interface
- Add language support (en_US)
- Include SQL schema
- Add build configuration
- Include documentation and licensing
2025-10-02 15:31:50 +02:00