Show -Default Bank Account Supplier on Purchase Order

hi, i have a problem, I need in “Purchase Order” add the -Default Bank Account - in Print Document, can’t help to include this field (Default Bank Account of Supplier)?

any suggestion?

hello, you can try jinja in html:
{{ frappe.db.get_value(“Supplier”, doc.supplier, “default_bank_account”)}}

ok i try but have a error like this

pymysql.err.ProgrammingError: (1064, “You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘{ default_bank_account }} from tab{{ Supplier }} where name = ‘CEMPRO’ or…’ at line 1”)