Merge pull request #9769 from manassolanki/payment-entry

frappe call if posting date is defined
This commit is contained in:
Nabin Hait 2017-07-10 17:57:26 +05:30 committed by GitHub
commit cf82c3828e

View File

@ -291,6 +291,7 @@ frappe.ui.form.on('Payment Entry', {
set_account_currency_and_balance: function(frm, account, currency_field, set_account_currency_and_balance: function(frm, account, currency_field,
balance_field, callback_function) { balance_field, callback_function) {
if (frm.doc.posting_date) {
frappe.call({ frappe.call({
method: "erpnext.accounts.doctype.payment_entry.payment_entry.get_account_details", method: "erpnext.accounts.doctype.payment_entry.payment_entry.get_account_details",
args: { args: {
@ -322,6 +323,7 @@ frappe.ui.form.on('Payment Entry', {
} }
} }
}); });
}
}, },
paid_from_account_currency: function(frm) { paid_from_account_currency: function(frm) {