Add debugging to saveAccountingEntries method

- Add debug log to track user parameter in saveAccountingEntries
- Help identify where user parameter is getting lost in the chain
This commit is contained in:
Frank Cools 2025-10-08 21:54:12 +02:00
parent 9afecbbac0
commit 2cb63406b9

View File

@ -1212,6 +1212,8 @@ class DeclarationTVA
*/
private function saveAccountingEntries($entries, $declaration, $user)
{
error_log("DEBUG: saveAccountingEntries called with user: " . ($user ? "VALID" : "NULL"));
if (empty($entries)) {
return true; // No entries to save
}