Go to file
Frank Cools 8cda039ade Create comprehensive database schema for DeclarationTVA module
Database Schema Overview:
- 10 core tables with complete relationships
- Multi-entity support with full data isolation
- Comprehensive indexing for performance optimization
- Foreign key constraints for data integrity
- Pre-built views for reporting and analytics

Core Tables:
- llx_declarationtva_config: Module configuration and settings
- llx_declarationtva_account_mappings: Multiple PCG account mappings per CA-3 line
- llx_declarationtva_periods: Declaration period management (quarterly/monthly)
- llx_declarationtva_declarations: Main declarations storage with status tracking
- llx_declarationtva_ca3_lines: CA-3 form lines data with amounts and VAT rates
- llx_declarationtva_account_details: Detailed account breakdown for each line

EU Transaction Tables:
- llx_declarationtva_eu_suppliers: EU supplier configuration and autoliquidation settings
- llx_declarationtva_eu_transactions: EU transaction tracking with B2B/B2C classification

Workflow Integration Tables:
- llx_declarationtva_workflow_log: Workflow triggers and automation logging
- llx_declarationtva_audit_trail: Complete audit trail for all changes
- llx_declarationtva_compliance: Compliance validation results and status

Export and Integration Tables:
- llx_declarationtva_exports: Export history and tracking (PDF, XML, CSV)

Key Features:
- Multiple account selection per CA-3 line with weighting and sorting
- Complete audit trail with user tracking and IP logging
- EU transaction handling with autoliquidation automation
- Workflow integration with Dolibarr hooks
- Performance optimization with comprehensive indexing
- Reporting views for analytics and compliance
- Multi-entity support for enterprise deployments
- Data integrity with foreign key constraints
- Initial configuration data for immediate setup

Database Design Principles:
- Scalable architecture for large datasets
- Complete data isolation between entities
- Optimized for French CA-3 compliance
- Full integration with Dolibarr accounting system
- Comprehensive audit trail for tax authorities
- Performance optimization for real-time processing
2025-10-02 16:09:59 +02:00
.tx Initial commit: DeclarationTVA Dolibarr module 2025-10-02 15:31:50 +02:00
admin Initial commit: DeclarationTVA Dolibarr module 2025-10-02 15:31:50 +02:00
build Initial commit: DeclarationTVA Dolibarr module 2025-10-02 15:31:50 +02:00
core/modules Initial commit: DeclarationTVA Dolibarr module 2025-10-02 15:31:50 +02:00
img Initial commit: DeclarationTVA Dolibarr module 2025-10-02 15:31:50 +02:00
langs Add comprehensive multiple PCG account selection functionality 2025-10-02 16:06:41 +02:00
lib Initial commit: DeclarationTVA Dolibarr module 2025-10-02 15:31:50 +02:00
sql Create comprehensive database schema for DeclarationTVA module 2025-10-02 16:09:59 +02:00
.gitattributes Initial commit: DeclarationTVA Dolibarr module 2025-10-02 15:31:50 +02:00
.gitignore Initial commit: DeclarationTVA Dolibarr module 2025-10-02 15:31:50 +02:00
ChangeLog.md Initial commit: DeclarationTVA Dolibarr module 2025-10-02 15:31:50 +02:00
COPYING Initial commit: DeclarationTVA Dolibarr module 2025-10-02 15:31:50 +02:00
declarationtvaindex.php Initial commit: DeclarationTVA Dolibarr module 2025-10-02 15:31:50 +02:00
modulebuilder.txt Initial commit: DeclarationTVA Dolibarr module 2025-10-02 15:31:50 +02:00
PLANNING.md Create comprehensive database schema for DeclarationTVA module 2025-10-02 16:09:59 +02:00
README.md Initial commit: DeclarationTVA Dolibarr module 2025-10-02 15:31:50 +02:00
TASK.md Add comprehensive multiple PCG account selection functionality 2025-10-02 16:06:41 +02:00

DECLARATIONTVA FOR DOLIBARR ERP & CRM

Features

Description of the module...

Other external modules are available on Dolistore.com.

Translations

Translations can be completed manually by editing files in the module directories under langs.

Installation

Prerequisites: You must have Dolibarr ERP & CRM software installed. You can download it from Dolistore.org. You can also get a ready-to-use instance in the cloud from https://saas.dolibarr.org

From the ZIP file and GUI interface

If the module is a ready-to-deploy zip file, so with a name module_xxx-version.zip (e.g., when downloading it from a marketplace like Dolistore), go to menu Home> Setup> Modules> Deploy external module and upload the zip file.

Final steps

Using your browser:

  • Log into Dolibarr as a super-administrator
  • Go to "Setup"> "Modules"
  • You should now be able to find and enable the module

Licenses

Main code

GPLv3 or (at your option) any later version. See file COPYING for more information.

Documentation

All texts and readme's are licensed under GFDL.