ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

How to get line wise VAT in invoice?


#1

How to get line wise VAT in invoice?


#2

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

A screenshot would be helpful.


#3

We need the invoice in this format.


#4
  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 -%}
     <tr>
     	<td>{{ row.idx }}</td>
     	<td>{{ row.item_name }}</td>
     	<td>{{ row.description }}</td>		
     	<td>{{row.get_formatted("amount", doc) }}</td>
     </tr>
     {%- endfor -%}