Hi,
How to print mode of Payment on Invoice using Jinja Templates.
Anybody pls guides and help
Hi,
How to print mode of Payment on Invoice using Jinja Templates.
Anybody pls guides and help
If mode_of_payment field is there in invoice then you can print using {{ doc.mode_of_payment }}
You can refer the below link and solve your problem.
@netmanthan, As I see in the image you have shared that is the child table and with doc.mode_of_payment you will not get the mode of payment. You have to traverse on the child table and display the mode of payment.
You can use below to print mode of payment from first row:
{% if doc.payment_schedule %} {{ doc.payment_schedule[0].mode_of_payment or "" }} {%- endif -%}
change the table name to payments if you want to print from this table
{% if doc.payments %} {{ doc.payments[0].mode_of_payment or "" }} {%- endif -%}