Viewing Trial Balance ExportPrint

session->userdata("CompanyName"); ?>

Trial Balance for FY
acgroup_name); foreach ($AccountGroup->AccountCategories as $AccountCategory) : $drAccountCategoryTotal = 0; $crAccountCategoryTotal = 0; showRow('table-category-heading', "" . $AccountCategory->accategory_name . ""); foreach ($AccountCategory->Accounts as $Account) : $drAccountBalance = 0; $crAccountBalance = 0; $accountBalance = getBalance($Account->account_id); $drAccountBalance = ($accountBalance > 0) ? $accountBalance : 0; $crAccountBalance = ($accountBalance < 0) ? abs($accountBalance) : 0; $drAccountCategoryTotal += $drAccountBalance; $dr += $drAccountBalance; $cr += $crAccountBalance; $crAccountCategoryTotal += $crAccountBalance; if ($accountBalance == 0) { if ($showZeroBalance) showRow($r, "" . $Account->account_name . "", myCurrency($drAccountBalance), myCurrency($crAccountBalance)); } else { showRow($r, "" . $Account->account_name . "", myCurrency($drAccountBalance), myCurrency($crAccountBalance)); } endforeach; showRow('table-category-total', "Total " . $AccountCategory->accategory_name . "", myCurrency($drAccountCategoryTotal), myCurrency($crAccountCategoryTotal)); $drAccountGroupTotal += $drAccountCategoryTotal; $crAccountGroupTotal += $crAccountCategoryTotal; endforeach; showRowHeader('table-group-total', "Total " . $AccountGroup->acgroup_name . "", myCurrency($drAccountGroupTotal), myCurrency($crAccountGroupTotal)); endforeach; ?>
Account Dr Cr
$c1\n"; $html = "$c1$c2$c3\n"; } else { $html = "$c1$c2$c3\n"; } echo $html; } function showRowHeader($r = "table-default", $c1 = ' ', $c2 = '', $c3 = '') { $html = "$c1$c2$c3\n"; echo $html; } function footerFunctions() { ?>