fix: future attendance marking

This commit is contained in:
anandbaburajan
2022-09-30 14:48:30 +05:30
parent 6f8d62088e
commit cb4fbd5432

View File

@@ -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"),