Add debugging for D-section calculation

Added:
- Debug logging for total VAT collected and deductible amounts
- This will help identify why line 25 shows wrong value (should be 406.28)
- Will show what values are being summed for the totals
This commit is contained in:
Frank Cools 2025-10-02 22:20:11 +02:00
parent bb6f5a3724
commit ddb6377245

View File

@ -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);