Skip to content

Commit

Permalink
fix: future attendance marking
Browse files Browse the repository at this point in the history
  • Loading branch information
anandbaburajan committed Sep 30, 2022
1 parent 6f8d620 commit cb4fbd5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/hr/doctype/attendance/attendance_list.js
Expand Up @@ -13,6 +13,8 @@ frappe.listview_settings['Attendance'] = {
onload: function(list_view) {
let me = this;
const months = moment.months();
const curMonth = moment().format("MMMM");
months.splice(months.indexOf(curMonth) + 1);
list_view.page.add_inner_button(__("Mark Attendance"), function() {
let dialog = new frappe.ui.Dialog({
title: __("Mark Attendance"),
Expand Down

0 comments on commit cb4fbd5

Please sign in to comment.