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.

70 lines
2.9 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!-- Copyright 2018 ForgeFlow, S.L. (https://www.forgeflow.com)
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <template id="aging_buckets">
  6. <p>
  7. Aging Report at <span t-esc="d['end']" /> in <span
  8. t-esc="display_currency.name"
  9. />:
  10. </p>
  11. <table class="table table-sm table-statement">
  12. <thead>
  13. <tr>
  14. <t t-foreach="bucket_labels" t-as="bl">
  15. <th class="amount">
  16. <span t-esc="bl" />
  17. </th>
  18. </t>
  19. </tr>
  20. </thead>
  21. <t t-set="buckets" t-value="currency['buckets']" />
  22. <tbody>
  23. <tr>
  24. <td class="amount">
  25. <span
  26. t-esc="buckets.get('current', 0.0)"
  27. t-options="{'widget': 'monetary', 'display_currency': display_currency}"
  28. />
  29. </td>
  30. <td class="amount">
  31. <span
  32. t-esc="buckets.get('b_1_30', 0.0)"
  33. t-options="{'widget': 'monetary', 'display_currency': display_currency}"
  34. />
  35. </td>
  36. <td class="amount">
  37. <span
  38. t-esc="buckets.get('b_30_60', 0.0)"
  39. t-options="{'widget': 'monetary', 'display_currency': display_currency}"
  40. />
  41. </td>
  42. <td class="amount">
  43. <span
  44. t-esc="buckets.get('b_60_90', 0.0)"
  45. t-options="{'widget': 'monetary', 'display_currency': display_currency}"
  46. />
  47. </td>
  48. <td class="amount">
  49. <span
  50. t-esc="buckets.get('b_90_120', 0.0)"
  51. t-options="{'widget': 'monetary', 'display_currency': display_currency}"
  52. />
  53. </td>
  54. <td class="amount">
  55. <span
  56. t-esc="buckets.get('b_over_120', 0.0)"
  57. t-options="{'widget': 'monetary', 'display_currency': display_currency}"
  58. />
  59. </td>
  60. <td class="amount">
  61. <span
  62. t-esc="buckets.get('balance', 0.0)"
  63. t-options="{'widget': 'monetary', 'display_currency': display_currency}"
  64. />
  65. </td>
  66. </tr>
  67. </tbody>
  68. </table>
  69. </template>
  70. </odoo>