diff --git a/erpnext/hr/doctype/expense_claim/expense_claim.js b/erpnext/hr/doctype/expense_claim/expense_claim.js index b30a4016c4..9242a72e04 100644 --- a/erpnext/hr/doctype/expense_claim/expense_claim.js +++ b/erpnext/hr/doctype/expense_claim/expense_claim.js @@ -27,23 +27,23 @@ cur_frm.cscript.onload = function(doc,cdt,cdn){ for(var i = 0; i 0: - if self.doc.approval_status == 'Draft': - msgprint("Sanctioned amount can be added by Approver person only for submitted Expense Claim") - raise Exception - elif self.doc.approval_status == 'Submitted' and session['user'] != self.doc.exp_approver: - msgprint("Sanctioned amount can be added only by expense voucher Approver") - raise Exception def validate_fiscal_year(self): fy=sql("select year_start_date from `tabFiscal Year` where name='%s'"%self.doc.fiscal_year) @@ -122,7 +110,6 @@ class DocType: raise Exception def validate(self): - self.validate_curr_exp() self.validate_fiscal_year() def on_update(self):