Half day validation in leave application

This commit is contained in:
Nabin Hait 2011-08-08 15:13:05 +05:30
parent 3cb7b165d1
commit d0d9bdfe90

View File

@ -55,9 +55,6 @@ cur_frm.cscript.to_date = function(doc, dt, dn) {
if(cint(doc.half_day) == 1 && cstr(doc.from_date) && doc.from_date != doc.to_date){
msgprint("To Date should be same as From Date for Half Day leave");
set_multiple(dt,dn,{to_date:doc.from_date});
}
if(cint(doc.half_day) == 1){
}
calculate_total_days(doc, dt, dn);
}