[minor] don't trigger the expense type trigger if value is not set

This commit is contained in:
mbauskar 2017-07-14 11:20:32 +05:30
parent 2c5b3e83f5
commit ed89a83584

View File

@ -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: {