[minor] check if account is selected or not in Payment Entry
This commit is contained in:
parent
ed89a83584
commit
00e825a8af
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user