Merge pull request #12540 from shreyashah115/posting-date
[Payroll Entry] Set posting date only if null
This commit is contained in:
commit
881d32c4b8
@ -5,7 +5,9 @@ var in_progress = false;
|
||||
|
||||
frappe.ui.form.on('Payroll Entry', {
|
||||
onload: function (frm) {
|
||||
if (!frm.doc.posting_date) {
|
||||
frm.doc.posting_date = frappe.datetime.nowdate();
|
||||
}
|
||||
frm.toggle_reqd(['payroll_frequency'], !frm.doc.salary_slip_based_on_timesheet);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user