Add debugging for journal label retrieval
- Add debug logging to see what journal label is retrieved from database - Help identify if the query is finding the correct journal - Debug both debit and credit entry journal label retrieval
This commit is contained in:
parent
b0705ecb4c
commit
60d2abd8e9
@ -1270,6 +1270,9 @@ class DeclarationTVA
|
||||
if ($journal_label_result && $this->db->num_rows($journal_label_result) > 0) {
|
||||
$journal_label_obj = $this->db->fetch_object($journal_label_result);
|
||||
$debit->journal_label = $journal_label_obj->label;
|
||||
error_log("DEBUG: Retrieved journal label: " . $journal_label_obj->label);
|
||||
} else {
|
||||
error_log("DEBUG: No journal label found for OD code");
|
||||
}
|
||||
|
||||
// Final check of montant before create
|
||||
@ -1321,6 +1324,9 @@ class DeclarationTVA
|
||||
if ($journal_label_result && $this->db->num_rows($journal_label_result) > 0) {
|
||||
$journal_label_obj = $this->db->fetch_object($journal_label_result);
|
||||
$credit->journal_label = $journal_label_obj->label;
|
||||
error_log("DEBUG: Retrieved journal label: " . $journal_label_obj->label);
|
||||
} else {
|
||||
error_log("DEBUG: No journal label found for OD code");
|
||||
}
|
||||
|
||||
// Final check of montant before create
|
||||
|
||||
Loading…
Reference in New Issue
Block a user