<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title><?lsmb titlebar ?></title> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="-1" /> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> <link rel="stylesheet" href="css/<?lsmb stylesheet ?>" type="text/css" title="LedgerSMB stylesheet" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta name="robots" content="noindex,nofollow" /> <style type="text/css"> a { color: inherit; background-color: inherit; text-decoration: none; } a:link { color: inherit; background-color: inherit; text-decoration: none; } a:visited { color: inherit; background-color: inherit; text-decoration: none; } a:hover { color: inherit; background-color: inherit; text-decoration: none; border-bottom: thin dashed; } </style> </head> <?lsmb USE dumper(indent=0, pad="<br />") ?> <?lsmb BLOCK account; # Handle account labels RETURN UNLESS account_data.defined; IF account_data.heading; ?><b><?lsmb account_data.text; ?></b><?lsmb ELSIF account_data.gifi_account; ?><a href="gl.pl?action=generate_report&path=<?lsmb path ?>&login=<?lsmb login ?>&sessionid=<?lsmb sessionid ?>&l_transdate=Y&l_reference=Y&l_description=Y&l_source=Y&l_debit=Y&l_credit=Y&l_gifi_accno=Y&category=X&gifi_accno=<?lsmb account_data.account ?>"><?lsmb account_data.text; ?></a><?lsmb ELSIF account_data.account; ?><a href="gl.pl?action=generate_report&path=<?lsmb path ?>&login=<?lsmb login ?>&sessionid=<?lsmb sessionid ?>&l_transdate=Y&l_reference=Y&l_description=Y&l_source=Y&l_debit=Y&l_credit=Y&l_accno=Y&category=X&accno=<?lsmb account_data.account ?>"><?lsmb account_data.text; ?></a><?lsmb ELSIF account_data.subtotal; ?><b> <?lsmb account_data.text; ?></b><?lsmb ELSIF account_data.current_earnings; IF l_heading ?> <?lsmb END; account_data.text; ELSE; account_data; END; END ?> <body> <h2 align="center"> <?lsmb company ?> <br /><?lsmb address ?> <br /><?lsmb text('Balance Sheet') ?> <br /><?lsmb text('as at [_1]', this_period) ?> </h2> <?lsmb IF department ?> <h4><?lsmb text('Department:') ?> <?lsmb department ?></h4> <?lsmb END ?> <table border="0"> <tr> <th align="left" width="400" colspan="2" style="text-transform: uppercase"><?lsmb text('Assets') ?><br /><hr align="left" width="250" size="5" noshade="noshade" /></th> <th><?lsmb this_period ?></th> <th><?lsmb last_period ?></th> </tr> <?lsmb FOREACH asset_account ?> <?lsmb loop_count = loop.count - 1 ?> <tr> <td> </td> <td><?lsmb PROCESS account account_data=asset_account.${loop_count} ?></td> <td align="right"><?lsmb asset_this_period.${loop_count} ?></td> <td align="right"><?lsmb asset_last_period.${loop_count} ?></td> </tr> <?lsmb END ?> <tr> <td colspan="2"> </td> <td><hr noshade="noshade" size="1" /></td> <td><hr noshade="noshade" size="1" /></td> </tr> <tr valign="top"> <th align="left" colspan="2" style="text-transform: uppercase"><?lsmb text('Total Assets') ?></th> <td align="right"><?lsmb total_assets_this_period ?><hr noshade="noshade" size="2" /></td> <td align="right"><?lsmb total_assets_last_period ?><hr noshade="noshade" size="2" /></td> </tr> <tr> <th align="left" colspan="4" style="text-transform: uppercase"><?lsmb text('Liabilities') ?><hr align="left" width="250" size="5" noshade="noshade" /></th> </tr> <?lsmb FOREACH liability_account ?> <?lsmb loop_count = loop.count - 1 ?> <tr> <td></td> <td><?lsmb PROCESS account account_data=liability_account.${loop_count} ?></td> <td align="right"><?lsmb liability_this_period.${loop_count} ?></td> <td align="right"><?lsmb liability_last_period.${loop_count} ?></td> </tr> <?lsmb END ?> <tr> <td colspan="2"> </td> <td><hr noshade="noshade" size="1" /></td> <td><hr noshade="noshade" size="1" /></td> </tr> <tr valign="top"> <td></td> <th align="left" style="text-transform: uppercase"><?lsmb text('Total Liabilities') ?></th> <td align="right"><?lsmb total_liabilities_this_period ?><br /><hr noshade="noshade" size="2" /></td> <td align="right"><?lsmb total_liabilities_last_period ?><br /><hr noshade="noshade" size="2" /></td> </tr> <tr> <th align="left" colspan="4" style="text-transform: uppercase"><?lsmb text("Shareholder's Equity") ?><br /><hr align="left" width="250" size="5" noshade="noshade" /></th> </tr> <?lsmb FOREACH equity_account ?> <?lsmb loop_count = loop.count - 1 ?> <tr> <td></td> <td><?lsmb PROCESS account account_data=equity_account.${loop_count} ?></td> <td align="right"><?lsmb equity_this_period.${loop_count} ?></td> <td align="right"><?lsmb equity_last_period.${loop_count} ?></td> </tr> <?lsmb END ?> <tr> <td colspan="2"> </td> <td><hr noshade="noshade" size="1" /></td> <td><hr noshade="noshade" size="1" /></td> </tr> <tr valign="top"> <td></td> <th align="left" style="text-transform: uppercase"><?lsmb text('Total Equity') ?></th> <td align="right"><?lsmb total_equity_this_period ?><br /><hr noshade="noshade" size="2" /></td> <td align="right"><?lsmb total_equity_last_period ?><br /><hr noshade="noshade" size="2" /></td> </tr> <tr valign="top"> <th align="left" colspan="2" style="text-transform: uppercase"><?lsmb escape(text('Total Liabilities & Equity')) ?></th> <td align="right"><?lsmb total_this_period ?><br /><hr noshade="noshade" size="2" /></td> <td align="right"><?lsmb total_last_period ?><br /><hr noshade="noshade" size="2" /></td> </tr> </table> </body> </html>