Get a custom field value from Supplier doctype to display in a print format for Purchase Order?

Hello, new to ERPNext and am trying to figure out … If we set up a custom field in the Supplier doctype called ‘Áccount’ (custom_account), how can we get this value to display in a Print Format for a Purchase Order relative to the supplier chosen?

Any help / guidance on this would be much appreciated.

try this {{ frappe.db.get_value('Supplier', doc.supplier, 'custom_account') }}

1 Like

Many, many thanks for your response. I tried it and it worked!

Really appreciate your help, thanks again.