Issue with Human Resource Management Application

Issue with Human Resource Management Application

Hi,
I have installed the Human Resource Management application from creator gallery.
As it have so many things which requires more time to understand, but to get start with basic ones, the attendance buttons on Profile page are not working correctly.
When I click on Check in, it shows me a frame saying "OK" not Check out frame.
When I click on OK it shows me Check in button again and it continues, not able to check in and capture the attendance at all.
I have asked support but so far, no help from them and I don't think they're gonna come up with anything as the code was shared with them, application is enabled to edit from support, remote session was given on the same as well.

If someone here can help, I will really appreciate that. The code is as follows.
EmpRec = Add_Employee[Official_Email == zoho.loginuserid];
info EmpRec.ID;
EmpAttendance = Attendance[Employee_ID == EmpRec.ID && Date_field == zoho.currentdate];
info EmpAttendance.ID;
if(EmpAttendance.Check_In == null)
{
    EmpAttendance.Check_In=zoho.currenttime;
    EmpAttendance.Status="Present";
}
EmpAttendance.Last_Check_In=zoho.currenttime;
openUrl("https://app.zohocreator.com" + zoho.appuri + "view-embed/Buttons","iframe","attendanceFrame")