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