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.

49 lines
2.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2018 Eficent Business and IT Consulting Services S.L.
  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 t-esc="display_currency.name"/>:
  8. </p>
  9. <table class="table table-sm table-statement">
  10. <thead>
  11. <tr>
  12. <t t-foreach="bucket_labels" t-as="bl">
  13. <th class="amount">
  14. <span t-esc="bl" />
  15. </th>
  16. </t>
  17. </tr>
  18. </thead>
  19. <t t-set="buckets" t-value="currency['buckets']" />
  20. <tbody>
  21. <tr>
  22. <td class="amount">
  23. <span t-esc="buckets.get('current', 0.0)" t-options="{'widget': 'monetary', 'display_currency': display_currency}"/>
  24. </td>
  25. <td class="amount">
  26. <span t-esc="buckets.get('b_1_30', 0.0)" t-options="{'widget': 'monetary', 'display_currency': display_currency}"/>
  27. </td>
  28. <td class="amount">
  29. <span t-esc="buckets.get('b_30_60', 0.0)" t-options="{'widget': 'monetary', 'display_currency': display_currency}"/>
  30. </td>
  31. <td class="amount">
  32. <span t-esc="buckets.get('b_60_90', 0.0)" t-options="{'widget': 'monetary', 'display_currency': display_currency}"/>
  33. </td>
  34. <td class="amount">
  35. <span t-esc="buckets.get('b_90_120', 0.0)" t-options="{'widget': 'monetary', 'display_currency': display_currency}"/>
  36. </td>
  37. <td class="amount">
  38. <span t-esc="buckets.get('b_over_120', 0.0)" t-options="{'widget': 'monetary', 'display_currency': display_currency}"/>
  39. </td>
  40. <td class="amount">
  41. <span t-esc="buckets.get('balance', 0.0)" t-options="{'widget': 'monetary', 'display_currency': display_currency}"/>
  42. </td>
  43. </tr>
  44. </tbody>
  45. </table>
  46. </template>
  47. </odoo>