From d32433c2b6c82098868ae65d1199e69860d810d0 Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Thu, 2 Oct 2025 17:05:39 +0200 Subject: [PATCH] Add missing Sections C and D - Complete CA-3 Structure (Notice 4722) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Complete CA-3 Form Structure: - Added Section C: Décompte de la TVA déductible (Deductible VAT Calculation) - Added Section D: Résultat (Result) - Now includes all 4 sections: A, B, C, D - Total of 17 CA-3 lines covering complete form Section C - Deductible VAT Calculation: - Line 20: TVA déductible sur immobilisations (Deductible VAT on fixed assets) - Line 21: TVA déductible sur autres biens et services (Deductible VAT on other goods and services) - Line 22: TVA déductible sur importations (Deductible VAT on imports) Section D - Result: - Line 25: TVA brute due (Total VAT due) - Line 26: TVA déductible totale (Total deductible VAT) - Line 28: TVA nette à payer (Net VAT to pay) - Line 29: Crédit de TVA à reporter ou remboursement (VAT credit to carry forward or refund) Enhanced Configuration: - Added section C and D headers with proper descriptions - Added all 7 new CA-3 lines for sections C and D - Updated PCG account mappings for all new lines - Enhanced form layout to show all 4 sections Language Support: - Added English translations for sections C and D and all lines - Added French translations for sections C and D and all lines - Complete bilingual support for all 17 CA-3 lines Documentation: - Updated PLANNING.md with complete CA-3 structure - Added sections C and D documentation with all lines - Complete Notice 4722 compliance with all 4 sections The module now includes the COMPLETE CA-3 structure with all 4 sections A, B, C, D! --- PLANNING.md | 17 ++++++ core/class/declarationtva_config.class.php | 63 ++++++++++++++++++++++ langs/en_US/declarationtva.lang | 13 +++++ langs/fr_FR/declarationtva.lang | 13 +++++ 4 files changed, 106 insertions(+) diff --git a/PLANNING.md b/PLANNING.md index f2e6e15..792d829 100644 --- a/PLANNING.md +++ b/PLANNING.md @@ -37,6 +37,23 @@ The module handles the complete French CA-3 VAT declaration structure: | **9B** | TVA due aux taux réduits (5,5% et 2,1%) | VAT amounts due, calculated on A1/A2 bases at reduced rates (5,5% and 2,1%) | 44573x (5,5%) / 44574x (2,1%) (TVA collectée aux taux réduits) | | **17** | TVA due au titre des acquisitions intracommunautaires | VAT due on intra-EU acquisitions (autoliquidation) | 4452xxx (TVA due intracommunautaire) | +##### C. Décompte de la TVA déductible (Deductible VAT Calculation) - Notice 4722 + +| CA-3 Line | Label | Description | PCG Accounts | +|-----------|-------|-------------|---------------| +| **20** | TVA déductible sur immobilisations | Deductible VAT on capital goods (fixed assets) | 44562x (TVA déductible sur immobilisations) | +| **21** | TVA déductible sur autres biens et services | Deductible VAT on other goods and services (operating expenses) | 44566x (TVA déductible sur autres biens et services) | +| **22** | TVA déductible sur importations | Deductible VAT on imports | 44566x / 44562x (TVA déductible sur importations) | + +##### D. Résultat (Result) - Notice 4722 + +| CA-3 Line | Label | Description | PCG Accounts | +|-----------|-------|-------------|---------------| +| **25** | TVA brute due (Total TVA due) | Total VAT due (sum of all VAT due amounts) | Sum of 08 + 09 + 9B + 17 | +| **26** | TVA déductible totale (Total deductible VAT) | Total deductible VAT (sum of all deductible VAT amounts) | Sum of 20 + 21 + 22 | +| **28** | TVA nette à payer | Net VAT to pay (if total due > total deductible) | 445510 (État - TVA à décaisser) | +| **29** | Crédit de TVA à reporter ou remboursement | VAT credit to carry forward or refund (if total deductible > total due) | 445670 (État - Crédit de TVA à reporter ou rembourser) | + ### EU Transaction Handling #### 1️⃣ Incoming Invoices (EU Purchases) diff --git a/core/class/declarationtva_config.class.php b/core/class/declarationtva_config.class.php index 1c6b8f2..ea6edb4 100644 --- a/core/class/declarationtva_config.class.php +++ b/core/class/declarationtva_config.class.php @@ -247,6 +247,59 @@ class DeclarationTVA_Config 'section' => 'B', 'description' => 'VAT due on intra-EU acquisitions (autoliquidation)', 'pcg_accounts' => '4452xxx (TVA due intracommunautaire)' + ), + + // C. Décompte de la TVA déductible (Deductible VAT Calculation) - Notice 4722 + '20' => array( + 'label' => 'TVA déductible sur immobilisations', + 'type' => 'vat', + 'section' => 'C', + 'description' => 'Deductible VAT on capital goods (fixed assets)', + 'pcg_accounts' => '44562x (TVA déductible sur immobilisations)' + ), + '21' => array( + 'label' => 'TVA déductible sur autres biens et services', + 'type' => 'vat', + 'section' => 'C', + 'description' => 'Deductible VAT on other goods and services (operating expenses)', + 'pcg_accounts' => '44566x (TVA déductible sur autres biens et services)' + ), + '22' => array( + 'label' => 'TVA déductible sur importations', + 'type' => 'vat', + 'section' => 'C', + 'description' => 'Deductible VAT on imports', + 'pcg_accounts' => '44566x / 44562x (TVA déductible sur importations)' + ), + + // D. Résultat (Result) - Notice 4722 + '25' => array( + 'label' => 'TVA brute due (Total TVA due)', + 'type' => 'vat', + 'section' => 'D', + 'description' => 'Total VAT due (sum of all VAT due amounts)', + 'pcg_accounts' => 'Sum of 08 + 09 + 9B + 17' + ), + '26' => array( + 'label' => 'TVA déductible totale (Total deductible VAT)', + 'type' => 'vat', + 'section' => 'D', + 'description' => 'Total deductible VAT (sum of all deductible VAT amounts)', + 'pcg_accounts' => 'Sum of 20 + 21 + 22' + ), + '28' => array( + 'label' => 'TVA nette à payer', + 'type' => 'vat', + 'section' => 'D', + 'description' => 'Net VAT to pay (if total due > total deductible)', + 'pcg_accounts' => '445510 (État - TVA à décaisser)' + ), + '29' => array( + 'label' => 'Crédit de TVA à reporter ou remboursement', + 'type' => 'vat', + 'section' => 'D', + 'description' => 'VAT credit to carry forward or refund (if total deductible > total due)', + 'pcg_accounts' => '445670 (État - Crédit de TVA à reporter ou rembourser)' ) ); } @@ -268,6 +321,16 @@ class DeclarationTVA_Config 'title' => 'B. Décompte de la TVA due (VAT Due Calculation)', 'description' => 'VAT amounts due, calculated on A1/A2 bases per applicable rate', 'notice' => 'Notice 4722 - VAT Due Calculation' + ), + 'C' => array( + 'title' => 'C. Décompte de la TVA déductible (Deductible VAT Calculation)', + 'description' => 'VAT amounts that can be deducted from purchases and expenses', + 'notice' => 'Notice 4722 - Deductible VAT Calculation' + ), + 'D' => array( + 'title' => 'D. Résultat (Result)', + 'description' => 'Final calculation: net VAT to pay or credit to carry forward', + 'notice' => 'Notice 4722 - Final Result' ) ); } diff --git a/langs/en_US/declarationtva.lang b/langs/en_US/declarationtva.lang index 75ffbca..2b7d25e 100644 --- a/langs/en_US/declarationtva.lang +++ b/langs/en_US/declarationtva.lang @@ -334,6 +334,8 @@ DeclarationTVASeasonalAnalysis = Seasonal Analysis # CA-3 Section Headers (Notice 4722) CA3SectionA = Taxable Operations CA3SectionB = VAT Due Calculation +CA3SectionC = Deductible VAT Calculation +CA3SectionD = Result CA3Notice4722 = Notice 4722 - Summary Table CA3 (3310-CA3-SD) # CA-3 Line Labels (Notice 4722) @@ -349,6 +351,17 @@ CA3Line09 = VAT due at 10% rate CA3Line9B = VAT due at reduced rates (5,5% and 2,1%) CA3Line17 = VAT due on intra-EU acquisitions (autoliquidation) +# Section C - Deductible VAT Calculation +CA3Line20 = Deductible VAT on fixed assets +CA3Line21 = Deductible VAT on other goods and services +CA3Line22 = Deductible VAT on imports + +# Section D - Result +CA3Line25 = Total VAT due +CA3Line26 = Total deductible VAT +CA3Line28 = Net VAT to pay +CA3Line29 = VAT credit to carry forward or refund + # Form Labels Description = Description PCGAccounts = PCG Accounts diff --git a/langs/fr_FR/declarationtva.lang b/langs/fr_FR/declarationtva.lang index 2259610..a60dcda 100644 --- a/langs/fr_FR/declarationtva.lang +++ b/langs/fr_FR/declarationtva.lang @@ -323,6 +323,8 @@ DeclarationTVASeasonalAnalysis = Analyse saisonnière # En-têtes des sections CA-3 (Notice 4722) CA3SectionA = Opérations imposables CA3SectionB = Décompte de la TVA due +CA3SectionC = Décompte de la TVA déductible +CA3SectionD = Résultat CA3Notice4722 = Notice 4722 - Tableau récapitulatif CA3 (3310-CA3-SD) # Labels des lignes CA-3 (Notice 4722) @@ -338,6 +340,17 @@ CA3Line09 = TVA due au taux de 10% CA3Line9B = TVA due aux taux réduits (5,5% et 2,1%) CA3Line17 = TVA due au titre des acquisitions intracommunautaires (autoliquidation) +# Section C - Décompte de la TVA déductible +CA3Line20 = TVA déductible sur immobilisations +CA3Line21 = TVA déductible sur autres biens et services +CA3Line22 = TVA déductible sur importations + +# Section D - Résultat +CA3Line25 = TVA brute due (Total TVA due) +CA3Line26 = TVA déductible totale (Total deductible VAT) +CA3Line28 = TVA nette à payer +CA3Line29 = Crédit de TVA à reporter ou remboursement + # Labels de formulaire Description = Description PCGAccounts = Comptes PCG