Want to print Delivery not date in Sales Invoice Printing

Want to print Delivery not date in Sales Invoice Printing. Please help.

HI,
Syntax-
frappe.db.get_value(“[doctype]”, “[name]”, “fieldname”)

Example:-
you can access posting date from delivery Note on sales invoice print format
{{frappe.db.get_value(“Delivery Note”, {“name”: doc.items[0].delivery_note}, “posting_date”)}}