summaryrefslogtreecommitdiff
path: root/templates/demo/income_statement.html
blob: 0198f4c511ab569d3c5001d42141183adb60d8c7 (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; ?><br /><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('Income Statement') ?>
  59. <br /><?lsmb text('for Period') ?>
  60. <br /><?lsmb period ?>
  61. <?lsmb IF compare_period ?>
  62. <br /><?lsmb compare_period ?>
  63. <?lsmb END ?>
  64. </h2>
  65. <?lsmb IF department ?>
  66. <h4><?lsmb text('Department: [_1]', department) ?></h4>
  67. <?lsmb END ?>
  68. <?lsmb IF projectnumber ?>
  69. <h4><?lsmb text('Project Number: [_1]', projectnumber) ?></h4>
  70. <?lsmb END ?>
  71. <table width="100%" border="0">
  72. <tr>
  73. <th width="400" align="left" colspan="2" style="text-transform: uppercase"><?lsmb text('Income') ?><br /><hr width="300" size="5" align="left" noshade="noshade" /></th>
  74. <th><?lsmb this_period_from ?><br /><?lsmb this_period_to ?></th>
  75. <th><?lsmb last_period_from ?><br /><?lsmb last_period_to ?></th>
  76. </tr>
  77. <?lsmb FOREACH income_account ?>
  78. <?lsmb loop_count = loop.count - 1 ?>
  79. <tr>
  80. <td width="4"> </td>
  81. <td><?lsmb PROCESS account account_data=income_account.${loop_count} ?></td>
  82. <td align="right"><?lsmb income_this_period.${loop_count} ?></td>
  83. <td align="right"><?lsmb income_last_period.${loop_count} ?></td>
  84. </tr>
  85. <?lsmb END ?>
  86. <tr>
  87. <td colspan="2"> </td>
  88. <td><hr noshade="noshade" size="1" /></td>
  89. <td><hr noshade="noshade" size="1" /></td>
  90. </tr>
  91. <tr valign="top">
  92. <td> </td>
  93. <th align="left" style="text-transform: uppercase"><?lsmb text('Total Income') ?></th>
  94. <td align="right"><?lsmb total_income_this_period ?><hr noshade="noshade" size="2" /></td>
  95. <td align="right"><?lsmb total_income_last_period ?><hr noshade="noshade" size="2" /></td>
  96. </tr>
  97. <tr>
  98. <th align="left" colspan="2" style="text-transform: uppercase"><?lsmb text('Expenses') ?><br /><hr width="300" size="5" align="left" noshade="noshade" /></th>
  99. </tr>
  100. <?lsmb FOREACH expense_account ?>
  101. <?lsmb loop_count = loop.count - 1 ?>
  102. <tr>
  103. <td> </td>
  104. <td><?lsmb PROCESS account account_data=expense_account.${loop_count} ?></td>
  105. <td align="right"><?lsmb expenses_this_period.${loop_count} ?></td>
  106. <td align="right"><?lsmb expenses_last_period.${loop_count} ?></td>
  107. </tr>
  108. <?lsmb END ?>
  109. <tr>
  110. <td colspan="2"> </td>
  111. <td><hr noshade="noshade" size="1" /></td>
  112. <td><hr noshade="noshade" size="1" /></td>
  113. </tr>
  114. <tr valign="top">
  115. <td> </td>
  116. <th align="left" style="text-transform: uppercase"><?lsmb text('Total Expenses') ?></th>
  117. <td align="right"><?lsmb total_expenses_this_period ?><br /><hr noshade="noshade" size="2" /></td>
  118. <td align="right"><?lsmb total_expenses_last_period ?><br /><hr noshade="noshade" size="2" /></td>
  119. </tr>
  120. <tr valign="top">
  121. <th align="left" colspan="2" style="text-transform: uppercase"><?lsmb text('Income / (Loss)') ?></th>
  122. <td align="right"><?lsmb total_this_period ?><br /><hr noshade="noshade" size="2" /></td>
  123. <td align="right"><?lsmb total_last_period ?><br /><hr noshade="noshade" size="2" /></td>
  124. </tr>
  125. </table>
  126. </body>
  127. </html>