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.

111 lines
5.4 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="loan_issue_line_document">
  4. <t t-call="web.external_layout">
  5. <t t-set="address">
  6. <address t-field="o.partner_id"
  7. t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/>
  8. </t>
  9. <div class="page mt32">
  10. <h2>
  11. <span>Reimbursement table</span>
  12. </h2>
  13. <p name="loan_payment_date_date" class="mt16">
  14. <span>Loan payment received on</span>
  15. <span t-field="o.payment_date"/>
  16. </p>
  17. <table class="table table-sm o_main_table mt16"
  18. name="invoice_line_table">
  19. <thead>
  20. <tr>
  21. <t t-set="colspan" t-value="5"/>
  22. <th class="text-left">Year</th>
  23. <th class="text-right">Subscribed amount</th>
  24. <th class="text-right">Accrued amount</th>
  25. <th class="text-right">Gross interest</th>
  26. <th class="text-right">Accrued gross interest</th>
  27. <th class="text-right">Net interest</th>
  28. <th class="text-right">Tax amount</th>
  29. <th class="text-right">Due amount</th>
  30. <th class="text-right">State</th>
  31. </tr>
  32. </thead>
  33. <tbody class="invoice_tbody">
  34. <t t-foreach="o.interest_lines" t-as="line">
  35. <tr>
  36. <td class="text-left" name="name">
  37. <span t-field="line.name"/>
  38. </td>
  39. <td class="text-right" name="subscribed_amount">
  40. <span t-field="line.amount"/>
  41. </td>
  42. <td class="text-right" name="accrued_amount">
  43. <span t-field="line.accrued_amount"/>
  44. </td>
  45. <td class="text-right" name="interest">
  46. <span t-field="line.interest"
  47. t-options='{"widget": "monetary", "display_currency": o.loan_issue_id.company_currency_id}'/>
  48. </td>
  49. <td class="text-right" name="accrued_interest">
  50. <span t-field="line.accrued_interest"
  51. t-options='{"widget": "monetary", "display_currency": o.loan_issue_id.company_currency_id}'/>
  52. </td>
  53. <td class="text-right" name="net_interest">
  54. <span t-field="line.net_interest"
  55. t-options='{"widget": "monetary", "display_currency": o.loan_issue_id.company_currency_id}'/>
  56. </td>
  57. <td class="text-right" name="taxes_amount">
  58. <span t-field="line.taxes_amount"
  59. t-options='{"widget": "monetary", "display_currency": o.loan_issue_id.company_currency_id}'/>
  60. </td>
  61. <td class="text-right" name="due_amount">
  62. <span t-field="line.due_amount"
  63. t-options='{"widget": "monetary", "display_currency": o.loan_issue_id.company_currency_id}'/>
  64. </td>
  65. <td class="text-right" name="due_date">
  66. <span t-field="line.due_date"/>
  67. </td>
  68. <td class="text-right" name="state">
  69. <span t-field="line.state"/>
  70. </td>
  71. </tr>
  72. </t>
  73. </tbody>
  74. </table>
  75. <div class="row mt32">
  76. <div name="board_commitee" class="col-sm-6">
  77. <p>
  78. For the board of<span t-field="o.company_id.name"/>.
  79. </p>
  80. <p>
  81. <strong>
  82. <span t-field="o.company_id.board_representative"/>
  83. </strong>
  84. </p>
  85. <img t-if="o.company_id.signature_scan"
  86. t-attf-class="mt16 w-50"
  87. t-attf-style="{{ 'min-width: 100px; max-width: 250px' if report_type == 'pdf' else '' }}"
  88. t-att-src="'data:image/png;base64,%s' % o.company_id.signature_scan.decode()"/>
  89. </div>
  90. </div>
  91. </div>
  92. </t>
  93. </template>
  94. <template id="loan_issue_line">
  95. <t t-call="web.html_container">
  96. <t t-foreach="docs" t-as="o">
  97. <t t-call="easy_my_coop_loan.loan_issue_line_document"
  98. t-lang="o.partner_id.lang"/>
  99. </t>
  100. </t>
  101. </template>
  102. </odoo>