Skip to content

Commit

Permalink
fix: reset last sync of checkin when auto update is enabled
Browse files Browse the repository at this point in the history
- this might be set to a future date, until then the auto-update job won't update the checkin
  • Loading branch information
ruchamahabal committed Feb 20, 2025
1 parent 08c50f5 commit 24c5a90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hrms/hr/doctype/shift_type/shift_type.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@ frappe.ui.form.on("Shift Type", {
});
});
},

auto_update_last_sync: function (frm) {
if (frm.doc.auto_update_last_sync) {
frm.set_value("last_sync_of_checkin", "");
}
},
});

0 comments on commit 24c5a90

Please sign in to comment.