From 87b6d656df19810f36509cbead02914d4249ead1 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 31 Jul 2012 11:23:44 +0530 Subject: [PATCH] sanctioned amt auto set equals to claimed amt --- .../hr/doctype/expense_claim/expense_claim.js | 27 +++++++++++-------- .../hr/doctype/expense_claim/expense_claim.py | 13 --------- 2 files changed, 16 insertions(+), 24 deletions(-) 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):