diff --git a/core/class/declarationtva.class.php b/core/class/declarationtva.class.php index c5d12e1..ec032d0 100644 --- a/core/class/declarationtva.class.php +++ b/core/class/declarationtva.class.php @@ -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 . "'");