feat: add party name in payment request

(cherry picked from commit 0acb609d97)

# Conflicts:
#	erpnext/accounts/doctype/payment_request/payment_request.py
This commit is contained in:
RAVIBHARATHI P C
2024-10-23 14:27:13 +05:30
committed by Mergify
parent 7202939e0d
commit 935f2e11e8
3 changed files with 25 additions and 3 deletions

View File

@@ -375,7 +375,8 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
recipient_id: me.frm.doc.contact_email,
payment_request_type: payment_request_type,
party_type: payment_request_type == 'Outward' ? "Supplier" : "Customer",
party: payment_request_type == 'Outward' ? me.frm.doc.supplier : me.frm.doc.customer
party: payment_request_type == 'Outward' ? me.frm.doc.supplier : me.frm.doc.customer,
party_name:payment_request_type == 'Outward' ? me.frm.doc.supplier_name : me.frm.doc.customer_name
},
callback: function(r) {
if(!r.exc){