Dealing with employee who is always late, with ERPNext. How?

As title says everything, every employer faces these issues. There must be a report for employees, who often been late, and action against them as policy. But, it should be flexible in such manner so that, action/penalty decision has to be taken only employee late thrice or 5 times in a month.

Some of them have a generic issue for being late, so the employee has to report to TL or HR, so mechanism of reporting also achieved through ERPNext.

So, after creating report, to take action against/penalty(in terms of half/full day) employee in deduction. Did anyone manage this earlier? Your views to make it effective and I’ll try to pull pr.