Hi I have written code (HTML code at print format) to fetch tax amount and total from Sales Charges and Tax but system is not fetching data from Sales charges and tax. Please guide to fetch data from one child table to another what terminology is used before field name?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quotation Print Format</title>
<style>
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
th, td {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
th {
background-color: #f2f2f2;
}
</style>
</head>
<body>
<h2>Quotation</h2>
<table>
<thead>
<tr>
<th>Item Name</th>
<th>Rate</th>
<th>Quantity</th>
<th>Amount</th>
<th>Tax Rate</th>
<th>Tax Amount</th>
<th>Total Amount</th>
</tr>
</thead>
<tbody>
{%- for row in doc.items -%}
<tr>
<td>{{ row.item_name }}</td>
<td>{{ row.rate }}</td>
<td>{{ row.qty }}</td>
<td>{{ row.amount }}</td>
<td>{{ row.item_tax_template }}</td>
<td>{{ row.tax_amount }}</td>
<td>{{ row.total }}</td>
</tr>
{%- endfor -%}
</tbody>
</table>
<!-- Additional Information or Footer Goes Here -->
</body>
</html>