[minor] don't trigger the expense type trigger if value is not set
This commit is contained in:
parent
2c5b3e83f5
commit
ed89a83584
@ -27,6 +27,10 @@ erpnext.hr.ExpenseClaimController = frappe.ui.form.Controller.extend({
|
||||
return;
|
||||
}
|
||||
|
||||
if(!d.expense_type) {
|
||||
return;
|
||||
}
|
||||
|
||||
return frappe.call({
|
||||
method: "erpnext.hr.doctype.expense_claim.expense_claim.get_expense_claim_account",
|
||||
args: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user