[2026-06-28 16:15:03] [error] [Logger.php:160] [IP:::1] [USER:1] Route dispatch failed: POST /accounting/financial-years/close-branch: TypeError: audit_log(): Argument #4 ($oldData) must be of type ?array, int given, called in C:\xampp\htdocs\ai_admin\app\Services\FinancialYearService.php on line 226 in C:\xampp\htdocs\ai_admin\app\Helpers\helpers.php:911
#0 C:\xampp\htdocs\ai_admin\app\Services\FinancialYearService.php(226): audit_log('close', 'financial_year', 'Branch 2 closed...', 1)
#1 C:\xampp\htdocs\ai_admin\app\Controllers\FinancialYearController.php(77): FinancialYearService::closeBranch(2, 1, 1)
#2 C:\xampp\htdocs\ai_admin\app\Core\Router.php(54): FinancialYearController->closeBranch()
#3 C:\xampp\htdocs\ai_admin\app\Core\Router.php(24): Router->callAction('FinancialYearCo...', 'closeBranch')
#4 C:\xampp\htdocs\ai_admin\public\index.php(292): Router->dispatch('POST', '/accounting/fin...')
#5 {main}
[2026-06-28 22:57:51] [error] [Logger.php:160] [IP:::1] [USER:1] Route dispatch failed: POST /accounting/financial-years/close-branch: TypeError: audit_log(): Argument #4 ($oldData) must be of type ?array, int given, called in C:\xampp\htdocs\ai_admin\app\Services\FinancialYearService.php on line 226 in C:\xampp\htdocs\ai_admin\app\Helpers\helpers.php:911
#0 C:\xampp\htdocs\ai_admin\app\Services\FinancialYearService.php(226): audit_log('close', 'financial_year', 'Branch 1 closed...', 1)
#1 C:\xampp\htdocs\ai_admin\app\Controllers\FinancialYearController.php(77): FinancialYearService::closeBranch(1, 1, 1)
#2 C:\xampp\htdocs\ai_admin\app\Core\Router.php(54): FinancialYearController->closeBranch()
#3 C:\xampp\htdocs\ai_admin\app\Core\Router.php(24): Router->callAction('FinancialYearCo...', 'closeBranch')
#4 C:\xampp\htdocs\ai_admin\public\index.php(292): Router->dispatch('POST', '/accounting/fin...')
#5 {main}
[2026-06-28 23:01:57] [error] [Logger.php:160] [IP:::1] [USER:1] Route dispatch failed: POST /loans/34/collect: Exception: Branch Financial Year is closed for this date. Backdated transaction is prohibited. in C:\xampp\htdocs\ai_admin\app\Helpers\helpers.php:238
#0 C:\xampp\htdocs\ai_admin\app\Controllers\LoanController.php(655): is_financial_year_open('2026-06-28', 2)
#1 C:\xampp\htdocs\ai_admin\app\Core\Router.php(54): LoanController->collectEmi('34')
#2 C:\xampp\htdocs\ai_admin\app\Core\Router.php(35): Router->callAction('LoanController', 'collectEmi', Array)
#3 C:\xampp\htdocs\ai_admin\public\index.php(292): Router->dispatch('POST', '/loans/34/colle...')
#4 {main}
[2026-06-28 23:08:02] [error] [Logger.php:160] [IP:::1] [USER:1] Route dispatch failed: POST /loans/34/collect: Exception: Company Financial Year is closed for this date. Backdated transaction is prohibited. in C:\xampp\htdocs\ai_admin\app\Helpers\helpers.php:231
#0 C:\xampp\htdocs\ai_admin\app\Controllers\LoanController.php(655): is_financial_year_open('2026-06-28', 2)
#1 C:\xampp\htdocs\ai_admin\app\Core\Router.php(54): LoanController->collectEmi('34')
#2 C:\xampp\htdocs\ai_admin\app\Core\Router.php(35): Router->callAction('LoanController', 'collectEmi', Array)
#3 C:\xampp\htdocs\ai_admin\public\index.php(292): Router->dispatch('POST', '/loans/34/colle...')
#4 {main}
[2026-06-28 23:15:42] [error] [Logger.php:160] [IP:::1] [USER:1] Route dispatch failed: POST /loans/34/collect: Exception: Company Financial Year is closed for this date. Backdated transaction is prohibited. in C:\xampp\htdocs\ai_admin\app\Helpers\helpers.php:231
#0 C:\xampp\htdocs\ai_admin\app\Controllers\LoanController.php(655): is_financial_year_open('2026-06-28', 2)
#1 C:\xampp\htdocs\ai_admin\app\Core\Router.php(54): LoanController->collectEmi('34')
#2 C:\xampp\htdocs\ai_admin\app\Core\Router.php(35): Router->callAction('LoanController', 'collectEmi', Array)
#3 C:\xampp\htdocs\ai_admin\public\index.php(292): Router->dispatch('POST', '/loans/34/colle...')
#4 {main}
