You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
7.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="account_financial_report_qweb.report_trial_balance_qweb">
  4. <t t-call="report.html_container">
  5. <t t-foreach="docs" t-as="o">
  6. <!-- Saved flag fields into variables, used to define columns display -->
  7. <t t-set="show_partner_details" t-value="o.show_partner_details"/>
  8. <t t-call="account_financial_report_qweb.internal_layout">
  9. <!-- Defines global variables used by internal layout -->
  10. <t t-set="title">Trial Balance</t>
  11. <t t-set="company_name" t-value="o.company_id.name"/>
  12. <div class="page">
  13. <!-- Display filters -->
  14. <t t-call="account_financial_report_qweb.report_trial_balance_qweb_filters"/>
  15. <div class="act_as_table list_table" style="margin-top: 10px;"/>
  16. <!-- Display account lines -->
  17. <t t-if="not show_partner_details">
  18. <div class="act_as_table data_table" style="width: 1140px !important;">
  19. <!-- Display account header -->
  20. <t t-call="account_financial_report_qweb.report_trial_balance_qweb_lines_header"/>
  21. <!-- Display each lines -->
  22. <t t-foreach="o.account_ids" t-as="line">
  23. <!-- Display account lines -->
  24. <t t-call="account_financial_report_qweb.report_trial_balance_qweb_line"/>
  25. </t>
  26. </div>
  27. </t>
  28. <!-- Display partner lines -->
  29. <t t-if="show_partner_details">
  30. <t t-foreach="o.account_ids" t-as="account">
  31. <div class="page_break">
  32. <!-- Display account header -->
  33. <div class="act_as_table list_table" style="margin-top: 10px;"/>
  34. <div class="act_as_caption account_title" style="width: 1141px !important;">
  35. <span t-field="account.code"/> - <span t-field="account.name"/>
  36. </div>
  37. <div class="act_as_table data_table" style="width: 1140px !important;">
  38. <!-- Display account/partner header -->
  39. <t t-call="account_financial_report_qweb.report_trial_balance_qweb_lines_header"/>
  40. <!-- Display each partners -->
  41. <t t-foreach="account.partner_ids" t-as="line">
  42. <!-- Display partner line -->
  43. <t t-call="account_financial_report_qweb.report_trial_balance_qweb_line"/>
  44. </t>
  45. </div>
  46. <!-- Display account footer -->
  47. <t t-call="account_financial_report_qweb.report_trial_balance_qweb_account_footer"/>
  48. </div>
  49. </t>
  50. </t>
  51. </div>
  52. </t>
  53. </t>
  54. </t>
  55. </template>
  56. <template id="account_financial_report_qweb.report_trial_balance_qweb_filters">
  57. <div class="act_as_table data_table" style="width: 1140px !important;">
  58. <div class="act_as_row labels">
  59. <div class="act_as_cell">Date range filter</div>
  60. <div class="act_as_cell">Target moves filter</div>
  61. <div class="act_as_cell">Account balance at 0 filter</div>
  62. </div>
  63. <div class="act_as_row">
  64. <div class="act_as_cell">
  65. From: <span t-field="o.date_from"/> To: <span t-field="o.date_to"/>
  66. </div>
  67. <div class="act_as_cell">
  68. <t t-if="o.only_posted_moves">All posted entries</t>
  69. <t t-if="not o.only_posted_moves">All entries</t>
  70. </div>
  71. <div class="act_as_cell">
  72. <t t-if="o.hide_account_balance_at_0">Hide</t>
  73. <t t-if="not o.hide_account_balance_at_0">Show</t>
  74. </div>
  75. </div>
  76. </div>
  77. </template>
  78. <template id="account_financial_report_qweb.report_trial_balance_qweb_lines_header">
  79. <!-- Display table headers for lines -->
  80. <div class="act_as_thead">
  81. <div class="act_as_row labels">
  82. <t t-if="not show_partner_details">
  83. <!--## Code-->
  84. <div class="act_as_cell" style="width: 100px;">Code</div>
  85. <!--## Account-->
  86. <div class="act_as_cell" style="width: 600px;">Account</div>
  87. </t>
  88. <t t-if="show_partner_details">
  89. <!--## Partner-->
  90. /<div class="act_as_cell" style="width: 700px;">Partner</div>
  91. </t>
  92. <!--## Initial balance-->
  93. <div class="act_as_cell" style="width: 110px;">Initial balance</div>
  94. <!--## Debit-->
  95. <div class="act_as_cell" style="width: 110px;">Debit</div>
  96. <!--## Credit-->
  97. <div class="act_as_cell" style="width: 110px;">Credit</div>
  98. <!--## Ending balance-->
  99. <div class="act_as_cell" style="width: 110px;">Ending balance</div>
  100. </div>
  101. </div>
  102. </template>
  103. <template id="account_financial_report_qweb.report_trial_balance_qweb_line">
  104. <!-- # line -->
  105. <div class="act_as_row lines">
  106. <t t-if="not show_partner_details">
  107. <!--## Code-->
  108. <div class="act_as_cell left"><span t-field="line.code"/></div>
  109. </t>
  110. <!--## Account/Partner-->
  111. <div class="act_as_cell left"><span t-field="line.name"/></div>
  112. <!--## Initial balance-->
  113. <div class="act_as_cell amount"><span t-field="line.initial_balance"/></div>
  114. <!--## Debit-->
  115. <div class="act_as_cell amount"><span t-field="line.debit"/></div>
  116. <!--## Credit-->
  117. <div class="act_as_cell amount"><span t-field="line.credit"/></div>
  118. <!--## Ending balance-->
  119. <div class="act_as_cell amount"><span t-field="line.final_balance"/></div>
  120. </div>
  121. </template>
  122. <template id="account_financial_report_qweb.report_trial_balance_qweb_account_footer">
  123. <!-- Display account footer -->
  124. <div class="act_as_table list_table" style="width: 1141px !important;">
  125. <div class="act_as_row labels" style="font-weight: bold;">
  126. <!--## Account-->
  127. <div class="act_as_cell left" style="width: 700px;"><span t-field="account.code"/> - <span t-field="account.name"/></div>
  128. <!--## Initial balance-->
  129. <div class="act_as_cell amount" style="width: 110px;"><span t-field="account.initial_balance"/></div>
  130. <!--## Debit-->
  131. <div class="act_as_cell amount" style="width: 110px;"><span t-field="account.debit"/></div>
  132. <!--## Credit-->
  133. <div class="act_as_cell amount" style="width: 110px;"><span t-field="account.credit"/></div>
  134. <!--## Ending balance-->
  135. <div class="act_as_cell amount" style="width: 110px;"><span t-field="account.final_balance"/></div>
  136. </div>
  137. </div>
  138. </template>
  139. </odoo>