fixes in employee master
This commit is contained in:
parent
a642ae14eb
commit
dc84d410bc
@ -25,7 +25,8 @@ cur_frm.cscript.onload = function(doc) {
|
|||||||
cur_frm.cscript.refresh = function(doc) {
|
cur_frm.cscript.refresh = function(doc) {
|
||||||
if(!doc.__islocal) {
|
if(!doc.__islocal) {
|
||||||
hide_field("naming_series");
|
hide_field("naming_series");
|
||||||
cur_frm.add_custom_button('Make Salary Structure', cur_frm.cscript['Make Salary Structure']);
|
cur_frm.add_custom_button('Make Salary Structure',
|
||||||
|
cur_frm.cscript['Make Salary Structure']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,12 +45,16 @@ cur_frm.cscript.salutation = function(doc,dt,dn) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.cscript['Make Salary Structure']=function(){
|
cur_frm.cscript['Make Salary Structure']=function(){
|
||||||
$c_obj(make_doclist (doc.doctype,doc.name),'check_sal_structure',cur_frm.doc.name,function(r, rt) {
|
$c_obj(make_doclist (cur_frm.doc.doctype, cur_frm.doc.name), 'check_sal_structure',
|
||||||
|
cur_frm.doc.name, function(r, rt) {
|
||||||
if(r.message)
|
if(r.message)
|
||||||
alert("You have already created Active salary structure.\nIf you want to create new one, please ensure that no active salary structure exist.\nTo inactive salary structure select 'Is Active' as 'No'.");
|
msgprint("You have already created Active salary structure.\n \
|
||||||
|
If you want to create new one, please ensure that no active salary structure \
|
||||||
|
exist.\nTo inactive salary structure select 'Is Active' as 'No'.");
|
||||||
else
|
else
|
||||||
cur_frm.cscript.make_salary_structure(cur_frm.doc);
|
cur_frm.cscript.make_salary_structure(cur_frm.doc);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.cscript.make_salary_structure = function(doc, dt, dn, det){
|
cur_frm.cscript.make_salary_structure = function(doc, dt, dn, det){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user