Merge pull request #5684 from rohitwaghchaure/v7_ts_issue
[Salary Structure] Make salary_component field mandatory if salary_slip_based_on_timesheet is true
This commit is contained in:
commit
f3a50dc1c5
@ -32,7 +32,8 @@ frappe.ui.form.on('Salary Structure', {
|
|||||||
},
|
},
|
||||||
|
|
||||||
toggle_fields: function(frm) {
|
toggle_fields: function(frm) {
|
||||||
frm.toggle_display('time_sheet_earning_detail', cint(frm.doc.salary_slip_based_on_timesheet)==1);
|
frm.toggle_display('time_sheet_earning_detail', frm.doc.salary_slip_based_on_timesheet);
|
||||||
|
frm.toggle_reqd('salary_component', frm.doc.salary_slip_based_on_timesheet);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user