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.

155 lines
7.5 KiB

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