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.
 
 
 
 

47 lines
1.4 KiB

  1. <div class="tax-break-up" style="overflow-x: auto;">
  2. <table class="table table-bordered table-hover">
  3. <thead>
  4. <tr>
  5. {% for key in headers %}
  6. {% if loop.first %}
  7. <th class="text-left">{{ key }}</th>
  8. {% else %}
  9. <th class="text-right">{{ key }}</th>
  10. {% endif %}
  11. {% endfor%}
  12. </tr>
  13. </thead>
  14. <tbody>
  15. {% for item, taxes in itemised_tax.items() %}
  16. <tr>
  17. <td>{{ item }}</td>
  18. <td class='text-right'>
  19. {% if doc.get('is_return') %}
  20. {{ frappe.utils.fmt_money((itemised_taxable_amount.get(item, 0))|abs, None, doc.currency) }}
  21. {% else %}
  22. {{ frappe.utils.fmt_money(itemised_taxable_amount.get(item, 0), None, doc.currency) }}
  23. {% endif %}
  24. </td>
  25. {% for tax_account in tax_accounts %}
  26. {% set tax_details = taxes.get(tax_account) %}
  27. {% if tax_details %}
  28. <td class='text-right'>
  29. {% if tax_details.tax_rate or not tax_details.tax_amount %}
  30. ({{ tax_details.tax_rate }}%)
  31. {% endif %}
  32. {% if doc.get('is_return') %}
  33. {{ frappe.utils.fmt_money((tax_details.tax_amount / doc.conversion_rate)|abs, None, doc.currency) }}
  34. {% else %}
  35. {{ frappe.utils.fmt_money(tax_details.tax_amount / doc.conversion_rate, None, doc.currency) }}
  36. {% endif %}
  37. </td>
  38. {% else %}
  39. <td></td>
  40. {% endif %}
  41. {% endfor %}
  42. </tr>
  43. {% endfor %}
  44. </tbody>
  45. </table>
  46. </div>