mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
Merge pull request #20195 from rohitwaghchaure/fixed_party_type_in_payment_request
fix: incorrect party type in payment request
This commit is contained in:
@@ -2,6 +2,16 @@ cur_frm.add_fetch("payment_gateway_account", "payment_account", "payment_account
|
|||||||
cur_frm.add_fetch("payment_gateway_account", "payment_gateway", "payment_gateway")
|
cur_frm.add_fetch("payment_gateway_account", "payment_gateway", "payment_gateway")
|
||||||
cur_frm.add_fetch("payment_gateway_account", "message", "message")
|
cur_frm.add_fetch("payment_gateway_account", "message", "message")
|
||||||
|
|
||||||
|
frappe.ui.form.on("Payment Request", {
|
||||||
|
setup: function(frm) {
|
||||||
|
frm.set_query("party_type", function() {
|
||||||
|
return {
|
||||||
|
query: "erpnext.setup.doctype.party_type.party_type.get_party_type",
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
frappe.ui.form.on("Payment Request", "onload", function(frm, dt, dn){
|
frappe.ui.form.on("Payment Request", "onload", function(frm, dt, dn){
|
||||||
if (frm.doc.reference_doctype) {
|
if (frm.doc.reference_doctype) {
|
||||||
frappe.call({
|
frappe.call({
|
||||||
|
|||||||
Reference in New Issue
Block a user