Hello
I am working on custom print format for quotation and i add the Taxes and Charges Calculation to it but what i want is to make a new column in print format that calculate the taxable amount + vat column any help in doing this
Thanks
Tax and charge calculation
{% for item in doc.items %}
{{ _("Item") }} | {{ _("Taxable Amount") }} | {{ _("Tax Amount") }} | {{ _("Total JOD") }} |
---|---|---|---|
{{ item.item_code }} | {{ item.get_formatted("amount", doc) or "" }} |
{% set tax_amount = 0 %}
{% for tax in doc.taxes %}
{% if not tax.included_in_print_rate and tax.tax_amount > 0 %}
{% set tax_amount = tax_amount + item.get_formatted("amount", doc) | float * tax.rate / 100 %}
|