Automatically calculate hourly leaves based on attendance

Automatically calculate hourly leaves based on attendance

Hello,
I know Attendance and Leaves are separate modules in Zoho People, but I was wondering if there's a way to get the following behaviour.

Let's say we want our employees to work 8 hours a day by entering the office at 8:30am and leaving it at 5pm (with half hour lunch-break in the middle).

Let's make the following case:
1) Employee A checks-in at 8:30am
2) He then checks-out at 9:30am, cause he has to leave the office for personal obligations
3) after 1 hour (10:30am) he gets back to the office and checks-in again
4) He then checks-out at 5pm

Is there a way to:
  1. mark the employee as "present" for that day?
  2. deduct 1 hours of hourly leaves from his available hourly leaves amount?
In this sense, for us the employee:
  1. is always present even if he checks-in/out for 1 minute
  2. the hourly leaves for a day is always: 8 hours - the sum of the hours he was not in the office between 8:30am and 5pm - half hour lunch break
  3. is always absent when he's on daily leave
Thank you

    Zoho Developer Community






                              Zoho Desk Resources

                              • Desk Community Learning Series


                              • Digest


                              • Functions


                              • Meetups


                              • Kbase


                              • Resources


                              • Glossary


                              • Desk Marketplace


                              • MVP Corner


                              • Word of the Day



                                  Zoho Marketing Automation
                                          • Sticky Posts

                                          • Team Zoho People in your city!

                                            We are back with our next series of community events to meet you at your city! We are delighted to invite you to join us for a day of insightful sessions, interactions with other Zoho People users, and one-on-one sessions with our product experts. This
                                          • Come, join our HR Community!

                                            Hello everyone, We are delighted to invite you to join the HR Community, an exclusive forum for HR professionals around the world to collaborate, learn and grow together. In the HR community, you will be part of a tight-knit HR group, wherein you can,
                                          • Ask the experts: A 5-hour live Q and A session on Zoho People

                                            We are back with the 'Ask the experts' session of the month! Your platform to get instant answers to your questions on Zoho People is now open. Our team of experts is here, on a continuous 5-hour stretch, to answer and give expert solutions. What to ask? Your questions, doubts or any hiccup revolving Zoho People. If you do not have any questions, you can follow the post to add it to your knowledge.   Where to ask? Simply use the comments' space of this post to type in your questions.You can start
                                          • Ask the experts: A 5-hour live Q and A session on Zoho People

                                            The awaited 'Ask the experts' session of the month is here to give instant answers to your questions on Zoho People.  Our team of experts is here, on a continuous 5-hour stretch, to answer and give expert solutions.   What to ask? Your questions, doubts or any hiccup revolving Zoho People. If you do not have any questions, you can follow the post to add it to your knowledge.   Where to ask? Simply use the comments' space of this post to type in your questions. You can start posting your questions
                                          • Webinar: What HR should be doing during this pandemic

                                            These are testing times for organizations, especially for Human Resources. From the reallocation of resources to finding new ways to manage a remote workforce, there are so many things that HR should be focusing on right now. Now is when expert advice can help. Join us for a free webinar and hear it from one of the leading industry experts, Nick Holley, on what HR should be doing during this pandemic.  This will be a partially interactive session where Nick will answer your questions once every 10


                                          Manage your brands on social media



                                                Zoho TeamInbox Resources

                                                  Zoho DataPrep Resources



                                                    Zoho CRM Plus Resources

                                                      Zoho Books Resources


                                                        Zoho Subscriptions Resources

                                                          Zoho Projects Resources


                                                            Zoho Sprints Resources


                                                              Qntrl Resources


                                                                Zoho Creator Resources


                                                                  Zoho WorkDrive Resources



                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series


                                                                      • Tips

                                                                        Tips

                                                                      • Functions

                                                                        Functions

                                                                      • Meetups

                                                                        Meetups

                                                                      • Kbase

                                                                        Kbase

                                                                      • Resources

                                                                        Resources

                                                                      • Digest

                                                                        Digest

                                                                      • CRM Marketplace

                                                                        CRM Marketplace

                                                                      • MVP Corner

                                                                        MVP Corner

                                                                      





                                                                      




                                                                          Design. Discuss. Deliver.

                                                                          Create visually engaging stories with Zoho Show.

                                                                          Get Started Now