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.

122 lines
6.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="report_session_summary">
  4. <t t-call="web.html_container">
  5. <t t-foreach="docs" t-as="o">
  6. <t t-call="web.external_layout">
  7. <div class="page">
  8. <h2>Session Summary: <span t-field="o.name"/></h2>
  9. <div class="row mt32 mb32">
  10. <div class="col-auto mw-100 mb-3">
  11. <strong>Responsible</strong>:<br/>
  12. <span t-field="o.user_id"/>
  13. </div>
  14. <div class="col-auto mw-100 mb-3">
  15. <strong>Point of Sale</strong>:<br/>
  16. <span t-field="o.config_id"/>
  17. </div>
  18. <div class="col-auto mw-100 mb-3">
  19. <strong>Opening Date</strong>:<br/>
  20. <span t-field="o.start_at"/>
  21. </div>
  22. <div class="col-auto mw-100 mb-3">
  23. <strong>Closing Date</strong>:<br/>
  24. <span t-field="o.stop_at"/>
  25. </div>
  26. </div>
  27. <h4>Statement Summary</h4>
  28. <table class="table table-sm o_main_table">
  29. <thead>
  30. <tr>
  31. <th>
  32. <strong>Reference</strong>
  33. </th>
  34. <th>
  35. <strong>Journal</strong>
  36. </th>
  37. <th class="text-right">
  38. <strong>Starting Balance</strong>
  39. </th>
  40. <th class="text-right">
  41. <strong>Total Transactions</strong>
  42. </th>
  43. <th class="text-right">
  44. <strong>Ending Balance</strong>
  45. </th>
  46. <th class="text-right">
  47. <strong>Difference</strong>
  48. </th>
  49. <th class="text-right" groups="base.group_multi_currency">
  50. <strong>Currency</strong>
  51. </th>
  52. <th class="text-right">
  53. <strong>Status</strong>
  54. </th>
  55. </tr>
  56. </thead>
  57. <tbody>
  58. <tr t-foreach="o.statement_ids" t-as="statement">
  59. <td><span t-field="statement.name"/></td>
  60. <td><span t-field="statement.journal_id"/></td>
  61. <td class="text-right">
  62. <span t-field="statement.balance_start"
  63. t-field-options='{"widget": "monetary", "display_currency": "statement.currency_id"}'/>
  64. </td>
  65. <td class="text-right">
  66. <span t-field="statement.total_entry_encoding"
  67. t-field-options='{"widget": "monetary", "display_currency": "statement.currency_id"}'/>
  68. </td>
  69. <td class="text-right">
  70. <span t-field="statement.balance_end_real"
  71. t-field-options='{"widget": "monetary", "display_currency": "statement.currency_id"}'/>
  72. </td>
  73. <td class="text-right">
  74. <span t-field="statement.difference"
  75. t-field-options='{"widget": "monetary", "display_currency": "statement.currency_id"}'/>
  76. </td>
  77. <td class="text-right" groups="base.group_multi_currency">
  78. <span t-field="statement.currency_id"/>
  79. </td>
  80. <td class="text-right"><span t-field="statement.state"/></td>
  81. </tr>
  82. </tbody>
  83. </table>
  84. <t t-foreach="o.statement_ids" t-as="statement">
  85. <h4 t-if="statement.line_ids">Statement Details: <span t-esc="statement.name"/></h4>
  86. <table class="table table-sm o_main_table" t-if="statement.line_ids">
  87. <thead>
  88. <tr>
  89. <th>Date</th>
  90. <th>Description</th>
  91. <th>Reference</th>
  92. <th>Partner</th>
  93. <th>Account</th>
  94. <th class="text-right">Amount</th>
  95. </tr>
  96. </thead>
  97. <tbody>
  98. <tr t-foreach="statement.line_ids" t-as="line">
  99. <td><span t-field="line.date"/></td>
  100. <td><span t-field="line.name"/></td>
  101. <td><span t-field="line.ref"/></td>
  102. <td><span t-field="line.partner_id"/></td>
  103. <td><span t-field="line.account_id"/></td>
  104. <td class="text-right">
  105. <span t-field="line.amount"
  106. t-field-options='{"widget": "monetary", "display_currency": "statement.currency_id"}'/>
  107. </td>
  108. </tr>
  109. </tbody>
  110. </table>
  111. </t>
  112. </div>
  113. </t>
  114. </t>
  115. </t>
  116. </template>
  117. </odoo>