Debug Pay Supplier
Step 1: Testing includes...
Warning: session_start(): Session cannot be started after headers have already been sent in /home2/supix/public_html/trx/includes/helpers.php on line 2
- helpers.php loaded OK
Step 2: Testing admin session...
Warning: session_start(): Session cannot be started after headers have already been sent in /home2/supix/public_html/trx/views/admin/debug-pay-supplier.php on line 24
- Session started
- WARNING: Not logged in as admin (will redirect normally)
Step 3: Testing database connection...
- Database connection OK
Step 4: Testing required tables...
- Table 'suppliers' exists
- Table 'companies' exists
- Table 'agents' exists
- Table 'transactions' exists
- Table 'supplier_payments' exists
- Table 'supplier_payment_allocations' exists
- Table 'partners' exists
- Table 'bank_accounts' exists
Step 5: Testing company_loans table...
- Table 'company_loans' exists
Step 6: Testing cash_entries.company_id column...
- Column 'company_id' exists in cash_entries
Step 7: Testing helper functions...
- getCompanies() returned 1 companies
- getBankAccountsWithBalances() returned 1 accounts
- getCompanyCashBalance(1) returned: 0
- getAllCompanyCashBalances() returned 1 companies
=== Debug Complete ===