ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

How to get line wise VAT in invoice?


How to get line wise VAT in invoice?


Arjun can you please explain what do you exactly wish to achieve ?

A screenshot would be helpful.


We need the invoice in this format.

  1. If you are using standard format just drag and drop items table and select the columns. It should work.

  2. In case of custom format, create a table with html with the required columns and then use a for loop with jinja to iterate and show all the items line wise. Check below code for reference.

     {%- for row in doc.items -%}
     	<td>{{ row.idx }}</td>
     	<td>{{ row.item_name }}</td>
     	<td>{{ row.description }}</td>		
     	<td>{{row.get_formatted("amount", doc) }}</td>
     {%- endfor -%}