diff --git a/erpnext/accounts/doctype/payment_order/payment_order.js b/erpnext/accounts/doctype/payment_order/payment_order.js index f009de595921..4033fc082332 100644 --- a/erpnext/accounts/doctype/payment_order/payment_order.js +++ b/erpnext/accounts/doctype/payment_order/payment_order.js @@ -71,6 +71,7 @@ frappe.ui.form.on("Payment Order", { target: frm, date_field: "posting_date", setters: { + party_type: "Supplier", party: frm.doc.supplier || "", }, get_query_filters: { @@ -91,6 +92,7 @@ frappe.ui.form.on("Payment Order", { source_doctype: "Payment Request", target: frm, setters: { + party_type: "Supplier", party: frm.doc.supplier || "", }, get_query_filters: {