I wanted to get values from 2 table and print the sales invoice. I am getting values, but printing in wrong way.
Please anyone help me
<tr>
<td rowspan="2">HSN/SAC</td>
<td rowspan="2">Taxable Value</td>
<td colspan="2">Central Tax</td>
<td colspan="2">State Tax</td>
<td rowspan="2">Total Amount</td>
</tr>
<tr>
<td>Rate</td>
<td>Amount</td>
<td>Rate</td>
<td>Amount</td>
</tr>
<tr>{%- for row in doc.items-%}
<td>{{ row.gst_hsn_code}}</td>
<td>{{ row.get_formatted("amount", doc) }}
{%- endfor -%}
{%- for row in doc.taxes-%}
</tr>{%- endfor -%}
<tr>
<td>Total</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
9% | {{ row.get_formatted(“tax_amount”, doc) }} | 9% | {{ row.get_formatted(“tax_amount”, doc) }} | {{ row.get_formatted(“total”, doc) }} |