summaryrefslogtreecommitdiff
path: root/templates/demo/balance_sheet.html
blob: e21fe7b307ab719ad4d061022759d3b9dbe36ec9 (plain)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <title><?lsmb titlebar ?></title>
  6. <meta http-equiv="Pragma" content="no-cache" />
  7. <meta http-equiv="Expires" content="-1" />
  8. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
  9. <link rel="stylesheet" href="css/<?lsmb stylesheet ?>" type="text/css" title="LedgerSMB stylesheet" />
  10. <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  11. <meta name="robots" content="noindex,nofollow" />
  12. <style type="text/css">
  13. a {
  14. color: inherit;
  15. background-color: inherit;
  16. text-decoration: none;
  17. }
  18. a:link {
  19. color: inherit;
  20. background-color: inherit;
  21. text-decoration: none;
  22. }
  23. a:visited {
  24. color: inherit;
  25. background-color: inherit;
  26. text-decoration: none;
  27. }
  28. a:hover {
  29. color: inherit;
  30. background-color: inherit;
  31. text-decoration: none;
  32. border-bottom: thin dashed;
  33. }
  34. </style>
  35. </head>
  36. <?lsmb USE dumper(indent=0, pad="<br />") ?>
  37. <?lsmb BLOCK account; # Handle account labels
  38. RETURN UNLESS account_data.defined;
  39. IF account_data.heading; ?><b><?lsmb
  40. account_data.text; ?></b><?lsmb
  41. ELSIF account_data.gifi_account; ?><a href="gl.pl?action=generate_report&amp;path=<?lsmb path ?>&amp;login=<?lsmb login ?>&amp;sessionid=<?lsmb sessionid ?>&amp;l_transdate=Y&amp;l_reference=Y&amp;l_description=Y&amp;l_source=Y&amp;l_debit=Y&amp;l_credit=Y&amp;l_gifi_accno=Y&amp;category=X&amp;gifi_accno=<?lsmb account_data.account ?>"><?lsmb
  42. account_data.text; ?></a><?lsmb
  43. ELSIF account_data.account; ?><a href="gl.pl?action=generate_report&amp;path=<?lsmb path ?>&amp;login=<?lsmb login ?>&amp;sessionid=<?lsmb sessionid ?>&amp;l_transdate=Y&amp;l_reference=Y&amp;l_description=Y&amp;l_source=Y&amp;l_debit=Y&amp;l_credit=Y&amp;l_accno=Y&amp;category=X&amp;accno=<?lsmb account_data.account ?>"><?lsmb
  44. account_data.text; ?></a><?lsmb
  45. ELSIF account_data.subtotal; ?><b>&nbsp;&nbsp;<?lsmb
  46. account_data.text; ?></b><?lsmb
  47. ELSIF account_data.current_earnings; IF l_heading ?>&nbsp;&nbsp;<?lsmb END;
  48. account_data.text;
  49. ELSE;
  50. account_data;
  51. END;
  52. END ?>
  53. <body>
  54. <h2 align="center">
  55. <?lsmb company ?>
  56. <br /><?lsmb address ?>
  57. <br /><?lsmb text('Balance Sheet') ?>
  58. <br /><?lsmb text('as at [_1]', this_period) ?>
  59. </h2>
  60. <?lsmb IF department ?>
  61. <h4><?lsmb text('Department:') ?> <?lsmb department ?></h4>
  62. <?lsmb END ?>
  63. <table border="0">
  64. <tr>
  65. <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>
  66. <th><?lsmb this_period ?></th>
  67. <th><?lsmb last_period ?></th>
  68. </tr>
  69. <?lsmb FOREACH asset_account ?>
  70. <?lsmb loop_count = loop.count - 1 ?>
  71. <tr>
  72. <td> </td>
  73. <td><?lsmb PROCESS account account_data=asset_account.${loop_count} ?></td>
  74. <td align="right"><?lsmb asset_this_period.${loop_count} ?></td>
  75. <td align="right"><?lsmb asset_last_period.${loop_count} ?></td>
  76. </tr>
  77. <?lsmb END ?>
  78. <tr>
  79. <td colspan="2"> </td>
  80. <td><hr noshade="noshade" size="1" /></td>
  81. <td><hr noshade="noshade" size="1" /></td>
  82. </tr>
  83. <tr valign="top">
  84. <th align="left" colspan="2" style="text-transform: uppercase"><?lsmb text('Total Assets') ?></th>
  85. <td align="right"><?lsmb total_assets_this_period ?><hr noshade="noshade" size="2" /></td>
  86. <td align="right"><?lsmb total_assets_last_period ?><hr noshade="noshade" size="2" /></td>
  87. </tr>
  88. <tr>
  89. <th align="left" colspan="4" style="text-transform: uppercase"><?lsmb text('Liabilities') ?><hr align="left" width="250" size="5" noshade="noshade" /></th>
  90. </tr>
  91. <?lsmb FOREACH liability_account ?>
  92. <?lsmb loop_count = loop.count - 1 ?>
  93. <tr>
  94. <td></td>
  95. <td><?lsmb PROCESS account account_data=liability_account.${loop_count} ?></td>
  96. <td align="right"><?lsmb liability_this_period.${loop_count} ?></td>
  97. <td align="right"><?lsmb liability_last_period.${loop_count} ?></td>
  98. </tr>
  99. <?lsmb END ?>
  100. <tr>
  101. <td colspan="2"> </td>
  102. <td><hr noshade="noshade" size="1" /></td>
  103. <td><hr noshade="noshade" size="1" /></td>
  104. </tr>
  105. <tr valign="top">
  106. <td></td>
  107. <th align="left" style="text-transform: uppercase"><?lsmb text('Total Liabilities') ?></th>
  108. <td align="right"><?lsmb total_liabilities_this_period ?><br /><hr noshade="noshade" size="2" /></td>
  109. <td align="right"><?lsmb total_liabilities_last_period ?><br /><hr noshade="noshade" size="2" /></td>
  110. </tr>
  111. <tr>
  112. <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>
  113. </tr>
  114. <?lsmb FOREACH equity_account ?>
  115. <?lsmb loop_count = loop.count - 1 ?>
  116. <tr>
  117. <td></td>
  118. <td><?lsmb PROCESS account account_data=equity_account.${loop_count} ?></td>
  119. <td align="right"><?lsmb equity_this_period.${loop_count} ?></td>
  120. <td align="right"><?lsmb equity_last_period.${loop_count} ?></td>
  121. </tr>
  122. <?lsmb END ?>
  123. <tr>
  124. <td colspan="2"> </td>
  125. <td><hr noshade="noshade" size="1" /></td>
  126. <td><hr noshade="noshade" size="1" /></td>
  127. </tr>
  128. <tr valign="top">
  129. <td></td>
  130. <th align="left" style="text-transform: uppercase"><?lsmb text('Total Equity') ?></th>
  131. <td align="right"><?lsmb total_equity_this_period ?><br /><hr noshade="noshade" size="2" /></td>
  132. <td align="right"><?lsmb total_equity_last_period ?><br /><hr noshade="noshade" size="2" /></td>
  133. </tr>
  134. <tr valign="top">
  135. <th align="left" colspan="2" style="text-transform: uppercase"><?lsmb escape(text('Total Liabilities & Equity')) ?></th>
  136. <td align="right"><?lsmb total_this_period ?><br /><hr noshade="noshade" size="2" /></td>
  137. <td align="right"><?lsmb total_last_period ?><br /><hr noshade="noshade" size="2" /></td>
  138. </tr>
  139. </table>
  140. </body>
  141. </html>