Delivery Notes Jinja Print Format

hi Guys,

We have created a customize print format of document but i can’t figure out where can i get the total and charges variables to insert jinja format. We need to modify the print format because we have the existing Delivery Note printed form that erpnext output need to shoot. Is there any have an idea please help us, I know other can benefit this and also if you can remove the border we dont need it since we have printed form.

Thank you

Here’s my html code:

<div class="print-heading"><h2>{{ doc.select_print_heading or "DELIVERY NOTE" }}</h2>
<small>{{ doc.name }}</small>
<div class="row">
	<div class="col-md-3 text-right">Customer Name</div>
	<div class="col-md-9">{{ doc.customer_name }}</div>
</div>
<div class="row">
	<div class="col-md-3 text-right">Date</div>
	<div class="col-md-9">{{ doc.get_formatted("posting_date") }}</div>
</div>
<table class="table table-bordered">
	<tbody>
		<tr>
			<th>Sr</th>
			<th>Item Name</th>
			<th>Description</th>
			<th class="text-right">Qty</th>
			<th class="text-right">Rate</th>
			<th class="text-right">Amount</th>
		</tr>
		{%- for row in doc.items -%}
		<tr>
			<td style="width: 3%;">{{ row.idx }}</td>
			<td style="width: 20%;">
				{{ row.item_name }}
				{% if row.item_code != row.item_name -%}
				<br>Item Code: {{ row.item_code}}
				{%- endif %}
			</td>
			<td style="width: 37%;">
				<div style="border: 0px;">{{ row.description }}</div></td>
			<td style="width: 10%; text-align: right;">{{ row.qty }} {{ row.uom or row.stock_uom }}</td>
			<td style="width: 15%; text-align: right;">{{
				row.get_formatted("rate", doc) }}</td>
			<td style="width: 15%; text-align: right;">{{
				row.get_formatted("amount", doc) }}</td>
		</tr>
		{%- endfor -%}	
	</tbody>
</table>

are those fields you want in your custom format visible in delivery note doctype? if yes, refer that fieldname, if not, just use a for loop inside your print format to calculate the value and print it