i am using print format to set up new print format, some of my data have to select from child table and display in html table.
eg. appraisal.
child table is appraisal goals.
i want some data from child table appraisal goal and display in table in print format.
for parent table i can get data in table but its not displaying data from child table. using jinja
pelase help me
below code is child table item in sales invoice…
<table class="table table-condensed cart no-border">
<thead>
<tr>
<th width="2%">{{ _("Sr.") }}</th>
<th width="46%">{{ _("Item") }}</th>
<th width="13%" class="text-right">{{ _("Batch No") }}</th>
<th width="9%" class="text-right">{{ _("MRP") }}</th>
</tr>
</thead>
<tbody>
{% set totalqty = { 'total':0 } %}
{%- for item in doc.items -%}
<tr>
<td>{{loop.index}}</td>
<td>
{{ item.item_name }}
</td>
<td class="text-right">{{ item.batch_no }}</td>
<td class="text-right">{{ item.get_formatted("price_list_rate") }}</td>
</tr>
{%- endfor -%}
<tr><td colspan=6></td</td>
</tbody>
</table>
thanks @Maheshwari_Bhavesh, i solved .