summaryrefslogtreecommitdiff
path: root/templates/demo/balance_sheet.html
blob: 23430e9bad9d42887706685a7ccf2cacf8f99910 (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. <?lsmb #SC: This is to convert a line termination indicator to a real br ?>
  57. <br /><?lsmb address.split('&lt;br&gt;').join('<br />') ?>
  58. <br /><?lsmb text('Balance Sheet') ?>
  59. <br /><?lsmb text('as at [_1]', this_period) ?>
  60. </h2>
  61. <?lsmb IF department ?>
  62. <h4><?lsmb text('Department:') ?> <?lsmb department ?></h4>
  63. <?lsmb END ?>
  64. <table border="0">
  65. <tr>
  66. <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>
  67. <th><?lsmb this_period ?></th>
  68. <th><?lsmb last_period ?></th>
  69. </tr>
  70. <?lsmb FOREACH asset_account ?>
  71. <?lsmb loop_count = loop.count - 1 ?>
  72. <tr>
  73. <td> </td>
  74. <td><?lsmb PROCESS account account_data=asset_account.${loop_count} ?></td>
  75. <td align="right"><?lsmb asset_this_period.${loop_count} ?></td>
  76. <td align="right"><?lsmb asset_last_period.${loop_count} ?></td>
  77. </tr>
  78. <?lsmb END ?>
  79. <tr>
  80. <td colspan="2"> </td>
  81. <td><hr noshade="noshade" size="1" /></td>
  82. <td><hr noshade="noshade" size="1" /></td>
  83. </tr>
  84. <tr valign="top">
  85. <th align="left" colspan="2" style="text-transform: uppercase"><?lsmb text('Total Assets') ?></th>
  86. <td align="right"><?lsmb total_assets_this_period ?><hr noshade="noshade" size="2" /></td>
  87. <td align="right"><?lsmb total_assets_last_period ?><hr noshade="noshade" size="2" /></td>
  88. </tr>
  89. <tr>
  90. <th align="left" colspan="4" style="text-transform: uppercase"><?lsmb text('Liabilities') ?><hr align="left" width="250" size="5" noshade="noshade" /></th>
  91. </tr>
  92. <?lsmb FOREACH liability_account ?>
  93. <?lsmb loop_count = loop.count - 1 ?>
  94. <tr>
  95. <td></td>
  96. <td><?lsmb PROCESS account account_data=liability_account.${loop_count} ?></td>
  97. <td align="right"><?lsmb liability_this_period.${loop_count} ?></td>
  98. <td align="right"><?lsmb liability_last_period.${loop_count} ?></td>
  99. </tr>
  100. <?lsmb END ?>
  101. <tr>
  102. <td colspan="2"> </td>
  103. <td><hr noshade="noshade" size="1" /></td>
  104. <td><hr noshade="noshade" size="1" /></td>
  105. </tr>
  106. <tr valign="top">
  107. <td></td>
  108. <th align="left" style="text-transform: uppercase"><?lsmb text('Total Liabilities') ?></th>
  109. <td align="right"><?lsmb total_liabilities_this_period ?><br /><hr noshade="noshade" size="2" /></td>
  110. <td align="right"><?lsmb total_liabilities_last_period ?><br /><hr noshade="noshade" size="2" /></td>
  111. </tr>
  112. <tr>
  113. <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>
  114. </tr>
  115. <?lsmb FOREACH equity_account ?>
  116. <?lsmb loop_count = loop.count - 1 ?>
  117. <tr>
  118. <td></td>
  119. <td><?lsmb PROCESS account account_data=equity_account.${loop_count} ?></td>
  120. <td align="right"><?lsmb equity_this_period.${loop_count} ?></td>
  121. <td align="right"><?lsmb equity_last_period.${loop_count} ?></td>
  122. </tr>
  123. <?lsmb END ?>
  124. <tr>
  125. <td colspan="2"> </td>
  126. <td><hr noshade="noshade" size="1" /></td>
  127. <td><hr noshade="noshade" size="1" /></td>
  128. </tr>
  129. <tr valign="top">
  130. <td></td>
  131. <th align="left" style="text-transform: uppercase"><?lsmb text('Total Equity') ?></th>
  132. <td align="right"><?lsmb total_equity_this_period ?><br /><hr noshade="noshade" size="2" /></td>
  133. <td align="right"><?lsmb total_equity_last_period ?><br /><hr noshade="noshade" size="2" /></td>
  134. </tr>
  135. <tr valign="top">
  136. <th align="left" colspan="2" style="text-transform: uppercase"><?lsmb escape(text('Total Liabilities & Equity')) ?></th>
  137. <td align="right"><?lsmb total_this_period ?><br /><hr noshade="noshade" size="2" /></td>
  138. <td align="right"><?lsmb total_last_period ?><br /><hr noshade="noshade" size="2" /></td>
  139. </tr>
  140. </table>
  141. </body>
  142. </html>