How to set frappe get doc for customer in payment entry

{% set c = frappe.get_doc(“Customer”, doc.customer) %}

if i use this on Sales invoice its work perfectly

but when i set it on payment entry i am not able to make it work
i have tryied this but its not working
{% set c = frappe.get_doc(“Party”, %}


{% set c = frappe.get_doc("Customer", %}


{% set c = frappe.get_doc(doc.party_type, %}
1 Like

thank you very much

it’s giving me error.
SyntaxError: Unexpected token %