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.

161 lines
7.6 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: 100%;">
  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"
  41. style="width: 100%;">
  42. <span t-field="account.code"/> - <span t-field="account.name"/>
  43. </div>
  44. <div class="act_as_table data_table"
  45. style="width: 100%;">
  46. <!-- Display account/partner header -->
  47. <t t-call="account_financial_report.report_trial_balance_lines_header"/>
  48. <!-- Display each partners -->
  49. <t t-foreach="account.partner_ids" t-as="line">
  50. <!-- Display partner line -->
  51. <t t-call="account_financial_report.report_trial_balance_line"/>
  52. </t>
  53. </div>
  54. <!-- Display account footer -->
  55. <t t-call="account_financial_report.report_trial_balance_account_footer"/>
  56. </div>
  57. </t>
  58. </t>
  59. </div>
  60. </template>
  61. <template id="account_financial_report.report_trial_balance_filters">
  62. <div class="act_as_table data_table" style="width: 100%;">
  63. <div class="act_as_row labels">
  64. <div class="act_as_cell">Date range filter</div>
  65. <div class="act_as_cell">Target moves filter</div>
  66. <div class="act_as_cell">Account balance at 0 filter</div>
  67. </div>
  68. <div class="act_as_row">
  69. <div class="act_as_cell">
  70. From: <span t-field="o.date_from"/> To: <span t-field="o.date_to"/>
  71. </div>
  72. <div class="act_as_cell">
  73. <t t-if="o.only_posted_moves">All posted entries</t>
  74. <t t-if="not o.only_posted_moves">All entries</t>
  75. </div>
  76. <div class="act_as_cell">
  77. <t t-if="o.hide_account_balance_at_0">Hide</t>
  78. <t t-if="not o.hide_account_balance_at_0">Show</t>
  79. </div>
  80. </div>
  81. </div>
  82. </template>
  83. <template id="account_financial_report.report_trial_balance_lines_header">
  84. <!-- Display table headers for lines -->
  85. <div class="act_as_thead">
  86. <div class="act_as_row labels">
  87. <t t-if="not show_partner_details">
  88. <!--## Code-->
  89. <div class="act_as_cell" style="width: 8.86%;">Code</div>
  90. <!--## Account-->
  91. <div class="act_as_cell" style="width: 52.58%;">Account
  92. </div>
  93. </t>
  94. <t t-if="show_partner_details">
  95. <!--## Partner-->
  96. <div class="act_as_cell" style="width: 61.44%;">Partner
  97. </div>
  98. </t>
  99. <!--## Initial balance-->
  100. <div class="act_as_cell" style="width: 9.64%;">Initial
  101. balance</div>
  102. <!--## Debit-->
  103. <div class="act_as_cell" style="width: 9.64%;">Debit</div>
  104. <!--## Credit-->
  105. <div class="act_as_cell" style="width: 9.64%;">Credit</div>
  106. <!--## Ending balance-->
  107. <div class="act_as_cell" style="width: 9.64%;">Ending balance</div>
  108. </div>
  109. </div>
  110. </template>
  111. <template id="account_financial_report.report_trial_balance_line">
  112. <!-- # line -->
  113. <div class="act_as_row lines">
  114. <t t-if="not show_partner_details">
  115. <!--## Code-->
  116. <div class="act_as_cell left"><span t-field="line.code"/></div>
  117. </t>
  118. <!--## Account/Partner-->
  119. <div class="act_as_cell left"><span t-field="line.name"/></div>
  120. <!--## Initial balance-->
  121. <div class="act_as_cell amount"><span t-field="line.initial_balance"/></div>
  122. <!--## Debit-->
  123. <div class="act_as_cell amount"><span t-field="line.debit"/></div>
  124. <!--## Credit-->
  125. <div class="act_as_cell amount"><span t-field="line.credit"/></div>
  126. <!--## Ending balance-->
  127. <div class="act_as_cell amount"><span t-field="line.final_balance"/></div>
  128. </div>
  129. </template>
  130. <template id="account_financial_report.report_trial_balance_account_footer">
  131. <!-- Display account footer -->
  132. <div class="act_as_table list_table" style="width: 100%;">
  133. <div class="act_as_row labels" style="font-weight: bold;">
  134. <!--## Account-->
  135. <div class="act_as_cell left" style="width: 61.44%;"><span
  136. t-field="account.code"/> - <span t-field="account.name"/></div>
  137. <!--## Initial balance-->
  138. <div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.initial_balance"/></div>
  139. <!--## Debit-->
  140. <div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.debit"/></div>
  141. <!--## Credit-->
  142. <div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.credit"/></div>
  143. <!--## Ending balance-->
  144. <div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.final_balance"/></div>
  145. </div>
  146. </div>
  147. </template>
  148. </odoo>