diff --git a/core/class/declarationtva.class.php b/core/class/declarationtva.class.php index d55c7a9..a3da5f4 100644 --- a/core/class/declarationtva.class.php +++ b/core/class/declarationtva.class.php @@ -269,8 +269,8 @@ class DeclarationTVA error_log("DeclarationTVA: Final amounts for line $ca3_line: base=$line_total_base, vat=$line_total_vat, total=$line_total_amount"); // Update totals - only VAT amounts from sections B and C - if (in_array($ca3_line, ['08', '09', '9B', '17'])) { - // Section B: VAT amounts only + if (in_array($ca3_line, ['08', '09', '9B'])) { + // Section B: VAT amounts only (line 17 is manual entry) $total_vat_collected += $line_total_vat; } elseif (in_array($ca3_line, ['20', '21', '22'])) { // Section C: VAT amounts only