mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
[Minor] Added condition for get_bank_cash_account (#15112)
This commit is contained in:
committed by
Nabin Hait
parent
8356d4b892
commit
a0b846fb88
@@ -71,7 +71,9 @@ frappe.ui.form.on('Employee Loan', {
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
mode_of_payment: function (frm) {
|
||||
if (frm.doc.mode_of_payment && frm.doc.company) {
|
||||
frappe.call({
|
||||
method: "erpnext.accounts.doctype.sales_invoice.sales_invoice.get_bank_cash_account",
|
||||
args: {
|
||||
@@ -84,6 +86,7 @@ frappe.ui.form.on('Employee Loan', {
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
employee_loan_application: function (frm) {
|
||||
|
||||
Reference in New Issue
Block a user