Remove translation function calls - use raw journal label
- Remove dol_translate() calls that are causing fatal errors - Use raw journal label from database without translation - Focus on getting the accounting entries working first - Can add translation later if needed
This commit is contained in:
parent
01abbb8af9
commit
ba62cfed7c
@ -1269,9 +1269,8 @@ class DeclarationTVA
|
||||
$journal_label_result = $this->db->query($journal_label_sql);
|
||||
if ($journal_label_result && $this->db->num_rows($journal_label_result) > 0) {
|
||||
$journal_label_obj = $this->db->fetch_object($journal_label_result);
|
||||
$translated_label = dol_translate($journal_label_obj->label);
|
||||
$debit->journal_label = $translated_label;
|
||||
error_log("DEBUG: Retrieved journal label: " . $journal_label_obj->label . " -> " . $translated_label);
|
||||
$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");
|
||||
}
|
||||
@ -1324,9 +1323,8 @@ class DeclarationTVA
|
||||
$journal_label_result = $this->db->query($journal_label_sql);
|
||||
if ($journal_label_result && $this->db->num_rows($journal_label_result) > 0) {
|
||||
$journal_label_obj = $this->db->fetch_object($journal_label_result);
|
||||
$translated_label = dol_translate($journal_label_obj->label);
|
||||
$credit->journal_label = $translated_label;
|
||||
error_log("DEBUG: Retrieved journal label: " . $journal_label_obj->label . " -> " . $translated_label);
|
||||
$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");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user