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>{{ }}</small>
<div class="row">
	<div class="col-md-3 text-right">Customer Name</div>
	<div class="col-md-9">{{ doc.customer_name }}</div>
<div class="row">
	<div class="col-md-3 text-right">Date</div>
	<div class="col-md-9">{{ doc.get_formatted("posting_date") }}</div>
<table class="table table-bordered">
			<th>Item Name</th>
			<th class="text-right">Qty</th>
			<th class="text-right">Rate</th>
			<th class="text-right">Amount</th>
		{%- for row in doc.items -%}
			<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 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>
		{%- endfor -%}	

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