Add comprehensive Bookkeeping object debugging
- Add print_r() output for complete Bookkeeping object before create() - Add JSON encoding of Bookkeeping object for detailed inspection - Show all object properties and values - Help identify missing or incorrect field values causing empty amounts
This commit is contained in:
parent
2a6ac36d0e
commit
d819f0d3d1
@ -1270,6 +1270,11 @@ class DeclarationTVA
|
||||
error_log("DEBUG: - fk_doc: " . $debit->fk_doc);
|
||||
error_log("DEBUG: - fk_user_author: " . $debit->fk_user_author);
|
||||
|
||||
// Debug: Complete Bookkeeping object
|
||||
error_log("DEBUG: Complete Debit Bookkeeping object:");
|
||||
error_log("DEBUG: " . print_r($debit, true));
|
||||
error_log("DEBUG: JSON encoded Debit object: " . json_encode($debit));
|
||||
|
||||
$result = $debit->create($user);
|
||||
error_log("DEBUG: Debit entry create result: " . $result . " (type: " . gettype($result) . ")");
|
||||
error_log("DEBUG: Debit entry error message: '" . $debit->error . "'");
|
||||
@ -1316,6 +1321,11 @@ class DeclarationTVA
|
||||
error_log("DEBUG: - fk_doc: " . $credit->fk_doc);
|
||||
error_log("DEBUG: - fk_user_author: " . $credit->fk_user_author);
|
||||
|
||||
// Debug: Complete Bookkeeping object
|
||||
error_log("DEBUG: Complete Credit Bookkeeping object:");
|
||||
error_log("DEBUG: " . print_r($credit, true));
|
||||
error_log("DEBUG: JSON encoded Credit object: " . json_encode($credit));
|
||||
|
||||
$result = $credit->create($user);
|
||||
error_log("DEBUG: Credit entry create result: " . $result . " (type: " . gettype($result) . ")");
|
||||
error_log("DEBUG: Credit entry error message: '" . $credit->error . "'");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user