{% 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”, doc.party) %}