Add comprehensive debug logging for D-section fields
- Added debug logging for DTD_amount, D28_amount, D29_amount values - Added debug logging for all D-section field values being sent to PDF - This will help identify why lines 28 and 29 are not displaying in PDF - Debug will show if the values are being extracted correctly and what's being sent to PDF
This commit is contained in:
parent
07843dcf31
commit
2ee7e67a43
@ -349,6 +349,7 @@ class DeclarationTVA_PDF
|
|||||||
error_log("DeclarationTVA: A1_amount will be: " . $this->getCA3LineAmount($ca3_data, 'A1'));
|
error_log("DeclarationTVA: A1_amount will be: " . $this->getCA3LineAmount($ca3_data, 'A1'));
|
||||||
error_log("DeclarationTVA: B08_vat_amount will be: " . $this->getCA3LineAmount($ca3_data, '08', 'vat_amount'));
|
error_log("DeclarationTVA: B08_vat_amount will be: " . $this->getCA3LineAmount($ca3_data, '08', 'vat_amount'));
|
||||||
error_log("DeclarationTVA: B09_vat_amount will be: " . $this->getCA3LineAmount($ca3_data, '09', 'vat_amount'));
|
error_log("DeclarationTVA: B09_vat_amount will be: " . $this->getCA3LineAmount($ca3_data, '09', 'vat_amount'));
|
||||||
|
error_log("DeclarationTVA: DTD_amount will be: " . $this->getCA3LineAmount($ca3_data, 'TD'));
|
||||||
error_log("DeclarationTVA: D28_amount will be: " . $this->getCA3LineAmount($ca3_data, '28'));
|
error_log("DeclarationTVA: D28_amount will be: " . $this->getCA3LineAmount($ca3_data, '28'));
|
||||||
error_log("DeclarationTVA: D29_amount will be: " . $this->getCA3LineAmount($ca3_data, '29'));
|
error_log("DeclarationTVA: D29_amount will be: " . $this->getCA3LineAmount($ca3_data, '29'));
|
||||||
error_log("DeclarationTVA: total_vat_collected will be: " . $this->formatAmount($declaration->total_vat_collected));
|
error_log("DeclarationTVA: total_vat_collected will be: " . $this->formatAmount($declaration->total_vat_collected));
|
||||||
@ -386,6 +387,9 @@ class DeclarationTVA_PDF
|
|||||||
$field_data['net_vat_due'] = $this->formatAmount($declaration->net_vat_due);
|
$field_data['net_vat_due'] = $this->formatAmount($declaration->net_vat_due);
|
||||||
$field_data['vat_credit'] = $this->formatAmount($declaration->vat_credit);
|
$field_data['vat_credit'] = $this->formatAmount($declaration->vat_credit);
|
||||||
|
|
||||||
|
// Debug: Log specific D-section fields
|
||||||
|
error_log("DeclarationTVA: D-section fields - D25: " . $field_data['D25_amount'] . ", D26: " . $field_data['D26_amount'] . ", DTD: " . $field_data['DTD_amount'] . ", D28: " . $field_data['D28_amount'] . ", D29: " . $field_data['D29_amount']);
|
||||||
|
|
||||||
return $field_data;
|
return $field_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user