Add debug logging for A1 field data structure
- Added detailed logging to see what's actually in ca3_data['A1'] - This will help identify why A1_amount shows 0,00 in PDF - Debug will show if A1 exists and what data it contains
This commit is contained in:
parent
72c0fe8616
commit
d93c0818f4
@ -347,6 +347,7 @@ class DeclarationTVA_PDF
|
||||
|
||||
// Debug: Log specific amount field values
|
||||
error_log("DeclarationTVA: A1_amount will be: " . (isset($ca3_data['A1']) ? $this->formatAmount($ca3_data['A1']['vat_amount']) : '0,00'));
|
||||
error_log("DeclarationTVA: A1 data structure: " . (isset($ca3_data['A1']) ? print_r($ca3_data['A1'], true) : 'A1 not found in ca3_data'));
|
||||
error_log("DeclarationTVA: B08_vat_amount will be: " . (isset($ca3_data['08']) ? $this->formatAmount($ca3_data['08']['vat_amount']) : '0,00'));
|
||||
error_log("DeclarationTVA: B09_vat_amount will be: " . (isset($ca3_data['09']) ? $this->formatAmount($ca3_data['09']['vat_amount']) : '0,00'));
|
||||
error_log("DeclarationTVA: total_vat_collected will be: " . $this->formatAmount($declaration->total_vat_collected));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user