From ed89a83584a20c92100b14060122a8dc24848202 Mon Sep 17 00:00:00 2001 From: mbauskar Date: Fri, 14 Jul 2017 11:20:32 +0530 Subject: [PATCH] [minor] don't trigger the expense type trigger if value is not set --- erpnext/hr/doctype/expense_claim/expense_claim.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erpnext/hr/doctype/expense_claim/expense_claim.js b/erpnext/hr/doctype/expense_claim/expense_claim.js index 4ce91c4bf9..2a94d05495 100644 --- a/erpnext/hr/doctype/expense_claim/expense_claim.js +++ b/erpnext/hr/doctype/expense_claim/expense_claim.js @@ -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: {