Merge pull request #7851 from rohitwaghchaure/account_paid_to_payment_entry

[Fix] Payment entry account Paid To Show receivable accounts for supplier
This commit is contained in:
Nabin Hait 2017-02-24 15:18:50 +05:30 committed by GitHub
commit da73e1b806

View File

@ -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;