[minor] check if account is selected or not in Payment Entry

This commit is contained in:
mbauskar 2017-07-14 11:38:39 +05:30
parent ed89a83584
commit 00e825a8af

View File

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