diff --git a/core/class/declarationtva.class.php b/core/class/declarationtva.class.php index 59dca09..661d93d 100644 --- a/core/class/declarationtva.class.php +++ b/core/class/declarationtva.class.php @@ -276,6 +276,9 @@ class DeclarationTVA } } + // Debug totals + error_log("DeclarationTVA: Total VAT collected: $total_vat_collected, Total VAT deductible: $total_vat_deductible"); + // Calculate D-section result lines (25, 26, 28, 29) $this->calculateDSectionLines($declaration_id, $total_vat_collected, $total_vat_deductible);