PAN number and Delivery Note number on Sales Invoice

Hi,
I want PAN number of the buyer along with the delivery challan number on the invoice. Can someone help me do it? I cant see these two options under the custom print format table. How do I add these two?

<td width=25%>
       Delivery Note <br>
       <b>{{frappe.db.get_value("Delivery Note", {"name": doc.items[0].delivery_note}, "name")}}
   </b>
</td>

image