From b983f26b98a6bdf5b7a6bf00cbfc2437996c0ed3 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Fri, 24 Feb 2017 15:07:54 +0530 Subject: [PATCH] [Fix] Payment entry account Paid To Show receivable accounts for supplier --- erpnext/accounts/doctype/payment_entry/payment_entry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.js b/erpnext/accounts/doctype/payment_entry/payment_entry.js index 79a8f2b78a..50bfbd3ea1 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.js +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.js @@ -11,9 +11,8 @@ frappe.ui.form.on('Payment Entry', { }, setup: function(frm) { - var party_account_type = frm.doc.party_type=="Customer" ? "Receivable" : "Payable"; - frm.set_query("paid_from", function() { + var party_account_type = frm.doc.party_type=="Customer" ? "Receivable" : "Payable"; var account_types = in_list(["Pay", "Internal Transfer"], frm.doc.payment_type) ? ["Bank", "Cash"] : party_account_type; @@ -35,6 +34,7 @@ frappe.ui.form.on('Payment Entry', { }); frm.set_query("paid_to", function() { + var party_account_type = frm.doc.party_type=="Customer" ? "Receivable" : "Payable"; var account_types = in_list(["Receive", "Internal Transfer"], frm.doc.payment_type) ? ["Bank", "Cash"] : party_account_type;