{"id":8971,"date":"2023-03-05T06:33:10","date_gmt":"2023-03-05T06:33:10","guid":{"rendered":"https:\/\/docs.daftra.com\/user_manual\/%d8%af%d9%84%d9%8a%d9%84-%d9%82%d9%88%d8%a7%d8%b9%d8%af-%d8%a7%d9%84%d8%ad%d8%b6%d9%88%d8%b1\/"},"modified":"2025-05-13T12:02:20","modified_gmt":"2025-05-13T12:02:20","slug":"attendance-flags-guide","status":"publish","type":"user_manual","link":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/","title":{"rendered":"Attendance Flags Guide"},"content":{"rendered":"<section class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]When it comes to employee attendance and leave, especially in large and multi-shift companies, it is not easy for HR managers to accurately calculate each employee&#8217;s dues based on their commitment to working hours or otherwise.<\/p>\n<p>To facilitate this process, the system has developed employee attendance rules\/ flags, adding a large number of attendance and leave scenarios. It allows linking with shifts and notifying the system of the action taken for each case. The system automatically handles each case accordingly. Let&#8217;s explore these features together through the explanation of this topic with practical examples.[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;Creating a Shift and Assigning it to an Employee&#8221; font_container=&#8221;tag:h2|font_size:28|text_align:center|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1701434978488{background-color: #f6f9fc !important;border-radius: 4px !important;}&#8221;][vc_column_text]The process of applying attendance rules to employees begins with creating shifts that define their basic working hours. Based on these shifts, the attendance and leave records are created. Since the method of creating shifts is not the focus of this topic, we won&#8217;t go into detail about it here. You can refer to the &#8220;<a href=\"https:\/\/docs.daftra.com\/en\/user_manual\/shifts-system\">Shift System <\/a>&#8221; to complete this step successfully.<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11235 size-full\" title=\"\u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0648\u0631\u062f\u064a\u0629 \u0648\u0631\u0628\u0637 \u0627\u0644\u0645\u0648\u0638\u0641 \u0628\u0647\u0627\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm.png\" alt=\"\" width=\"1054\" height=\"586\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm.png 1054w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm-300x167.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm-1024x569.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm-768x427.png 768w\" sizes=\"auto, (max-width: 1054px) 100vw, 1054px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/bbnnb.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11237\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/bbnnb.png\" alt=\"\" width=\"1086\" height=\"585\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/bbnnb.png 1086w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/bbnnb-300x162.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/bbnnb-1024x552.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/bbnnb-768x414.png 768w\" sizes=\"auto, (max-width: 1086px) 100vw, 1086px\" \/><\/a><\/p>\n<p>In the above image, you can see the created shift, &#8220;<strong>Morning Shift<\/strong>&#8220;:<\/p>\n<ul>\n<li><strong>Days:<\/strong> Sunday to Thursday.<\/li>\n<li><strong>Number of hours:<\/strong> 8 hours.<\/li>\n<li><strong>Start and end of the shift:<\/strong> From 9 am to 5 pm.<\/li>\n<li><strong>Start and end of attendance and leave times:<\/strong> From 8 am to 6 pm.<\/li>\n<li>In the &#8220;<strong>Lateness grace period&#8221;<\/strong> field, we set it to 15 minutes to determine the mechanism for calculating lateness.<\/li>\n<\/ul>\n<p>Now, after creating the shift, we move on to the second stage, which is creating the attendance flag, the topic we are explaining today.[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;What is an Attendance Flag?&#8221; font_container=&#8221;tag:h2|font_size:28|text_align:center|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1701437150779{background-color: #f6f9fc !important;border-radius: 4px !important;}&#8221;][vc_column_text]Before we understand how to create a new attendance flag, let&#8217;s quickly highlight the meaning of attendance flags and why we should use them. What is the difference between them and shifts?<\/p>\n<p>Attendance flags are advanced filtering factors for shifts. Creating a shift allows us to define employee attendance and leave times, as well as specify delay hours based on the attendance and leave times provided to the shift. However, its role stops at this point.<\/p>\n<p>Here is where the role of attendance flags\u00a0 comes in. Attendance flags enable us to assume a set of sub-cases for attendance and leave, and then notify the system of the action to be taken regarding these cases and how to deal with them when it&#8217;s time to pay salaries.<\/p>\n<p>From these cases, for example, the employee being late for one hour for the first time, being late for one hour for the second time, and so on, where shifts are unable to identify these cases. We use attendance flags to notify us when these cases are present in the employee&#8217;s attendance log.[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;Creating an Attendance Flag&#8221; font_container=&#8221;tag:h2|font_size:28|text_align:center|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1701437336789{background-color: #f6f9fc !important;border-radius: 4px !important;}&#8221;][vc_column_text]To create an attendance flag, click on &#8220;<strong>Attendance<\/strong>&#8221; from the main menu, then &#8220;<strong>Settings<\/strong>,&#8221; and then click on the &#8220;<strong>Attendance Flags<\/strong>&#8221; tab.<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/uuuiuo-1.png\" target=\"_blank\" rel=\"noopener\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11241 size-full\" title=\"\u0625\u0646\u0634\u0627\u0621 \u0642\u0627\u0639\u062f\u0629 \u062d\u0636\u0648\u0631\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/uuuiuo-1.png\" alt=\"\" width=\"1288\" height=\"584\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/uuuiuo-1.png 1288w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/uuuiuo-1-300x136.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/uuuiuo-1-1024x464.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/uuuiuo-1-768x348.png 768w\" sizes=\"auto, (max-width: 1288px) 100vw, 1288px\" \/><br \/>\n<\/a><\/p>\n<p>Next, click on the <strong>&#8220;New Attendance Flags&#8221;<\/strong> button, and enter the attendance flag details as follows:<\/p>\n<ul>\n<li><strong>Name:<\/strong> Specify a distinctive name for the attendance rule.<\/li>\n<li><strong>Color:<\/strong> Choose a color to distinguish each attendance rule in the final attendance log.<\/li>\n<li><strong>Description:<\/strong> If there is any additional description specific to the attendance rule, add it in this field.<\/li>\n<li><strong>Shifts:<\/strong> Select the shift to which you want to apply the attendance rule. This field is optional, and leaving it empty will automatically apply the attendance rule to all available shifts.<\/li>\n<li><strong>Condition:<\/strong> Add a condition for the attendance flag, such as being late for more than 60 minutes, using variables from attendance flag conditions. This will be clearer through the practical example we will explain later.<\/li>\n<li><strong>Formula:<\/strong> The calculation formula is the complementary part of the condition. After adding a condition (e.g., being late for more than 60 minutes from the sign-in time), we ask the system to count (1) each time the attendance flag is met. The system will automatically calculate the total occurrences of the flag in the attendance log, thus determining the amount due or deducted from the salary.<\/li>\n<li>After completing all this data, click the &#8220;<strong>Save<\/strong>&#8221; button at the top right of the screen.<\/li>\n<\/ul>\n<p>[\/vc_column_text][vc_custom_heading text=&#8221;Practical Example on the Attendance Flags&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]Now, we will proceed with the practical application of attendance flags by creating an attendance flag for the morning shift of the employee &#8220;<strong>Bassant<\/strong>.&#8221; Note that we have done the following before starting to create the attendance flag:<\/p>\n<ul>\n<li>We created the morning shift.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/bbnnb.png\" target=\"_blank\" rel=\"noopener\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11235 size-full\" title=\"\u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0648\u0631\u062f\u064a\u0629 \u0648\u0631\u0628\u0637 \u0627\u0644\u0645\u0648\u0638\u0641 \u0628\u0647\u0627\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm.png\" alt=\"\" width=\"1054\" height=\"586\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm.png 1054w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm-300x167.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm-1024x569.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm-768x427.png 768w\" sizes=\"auto, (max-width: 1054px) 100vw, 1054px\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11237\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/bbnnb.png\" alt=\"\" width=\"1086\" height=\"585\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/bbnnb.png 1086w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/bbnnb-300x162.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/bbnnb-1024x552.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/bbnnb-768x414.png 768w\" sizes=\"auto, (max-width: 1086px) 100vw, 1086px\" \/><\/a><\/p>\n<ul>\n<li>We linked the employee &#8220;<strong>Bassant<\/strong>&#8221; to the shift through her profile.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.daftra.com\/blog\/wp-content\/uploads\/2022\/09\/%D9%85%D8%AB%D8%A7%D9%84-%D8%AA%D8%B7%D8%A8%D9%8A%D9%82%D9%8A-%D8%B9%D9%84%D9%89-%D9%82%D9%88%D8%A7%D8%B9%D8%AF-%D8%A7%D9%84%D8%AD%D8%B6%D9%88%D8%B130.webp\" target=\"_blank\" rel=\"noopener\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11243 size-full\" title=\"\u0645\u062b\u0627\u0644 \u062a\u0637\u0628\u064a\u0642\u064a \u0639\u0644\u0649 \u0642\u0648\u0627\u0639\u062f \u0627\u0644\u062d\u0636\u0648\u0631\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/nmnbc.png\" alt=\"\" width=\"1048\" height=\"588\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/nmnbc.png 1048w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/nmnbc-300x168.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/nmnbc-1024x575.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/nmnbc-768x431.png 768w\" sizes=\"auto, (max-width: 1048px) 100vw, 1048px\" \/><br \/>\n<\/a><\/p>\n<ul>\n<li>We logged the attendance of the employee &#8220;<strong>Bassant<\/strong>&#8221; throughout the month to be able to import this record truly and apply the shift schedules and attendance flags to it.<\/li>\n<\/ul>\n<p><strong>Now, let&#8217;s start creating the attendance flag for the morning shift, assigning it:<\/strong><\/p>\n<ul>\n<li>The name &#8220;<strong>Late for One Hour Attendance Rule<\/strong>.&#8221;<\/li>\n<li>The color red to distinguish the number of times the flag is applied in the attendance log.<\/li>\n<\/ul>\n<p>In the &#8220;<strong>Condition<\/strong>&#8221; field, we search for the variable related to the delay duration, which is <strong>attendance delay<\/strong>. Then, we place a greater than sign (<strong>&gt;<\/strong>) and write &#8220;<strong>60<\/strong>&#8221; minutes. This way, the system understands that I want it to search for the number of times the employee &#8220;<strong>Bassant<\/strong>&#8221; has been late for more than 60 minutes.<\/p>\n<p>In the next step, the &#8220;<strong>Formula<\/strong>,&#8221; we specify the answer to the condition. We inform the system of what it should do when the condition is met in the attendance log of the employee &#8220;<strong>Bassant<\/strong>.&#8221; We will see the importance of this when creating the salary component later.<\/p>\n<p><a href=\"https:\/\/www.daftra.com\/blog\/wp-content\/uploads\/2022\/09\/%D9%85%D8%AB%D8%A7%D9%84-%D8%AA%D8%B7%D8%A8%D9%8A%D9%82%D9%8A-%D8%B9%D9%84%D9%89-%D9%82%D9%88%D8%A7%D8%B9%D8%AF-%D8%A7%D9%84%D8%AD%D8%B6%D9%88%D8%B129.webp\" target=\"_blank\" rel=\"noopener\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11245 size-full\" title=\"\u0645\u062b\u0627\u0644 \u062a\u0637\u0628\u064a\u0642\u064a \u0639\u0644\u0649 \u0642\u0648\u0627\u0639\u062f \u0627\u0644\u062d\u0636\u0648\u0631\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/qwertyui.png\" alt=\"\" width=\"1046\" height=\"582\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/qwertyui.png 1046w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/qwertyui-300x167.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/qwertyui-1024x570.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/qwertyui-768x427.png 768w\" sizes=\"auto, (max-width: 1046px) 100vw, 1046px\" \/><br \/>\n<\/a>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;Viewing the Attendance Log&#8221; font_container=&#8221;tag:h2|font_size:28|text_align:center|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1701438134230{background-color: #f6f9fc !important;border-radius: 4px !important;}&#8221;][vc_column_text]After setting the morning shift for the employee &#8220;Maria&#8221; and creating the attendance flag for being late by one hour, which is applied to her, we can now import her attendance file. This allows us to observe the impact of the attendance flag on the log.[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;alert-info&#8221; icon_fontawesome=&#8221;fas fa-book&#8221;]Refer to the <a href=\"https:\/\/docs.daftra.com\/en\/tutorial\/attendance-logs\/\" target=\"_blank\" rel=\"noopener\">Attendance Logs Import Guide<\/a> for the employee to successfully complete this step.[\/vc_message][vc_column_text]<\/p>\n<ul>\n<li><strong>Employee &#8220;Christina&#8221; Attendance Log from November 21 to December 20:<\/strong><\/li>\n<\/ul>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11249 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/lkjnm.png\" alt=\"\" width=\"859\" height=\"517\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/lkjnm.png 859w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/lkjnm-300x181.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/lkjnm-768x462.png 768w\" sizes=\"auto, (max-width: 859px) 100vw, 859px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>As seen in the above images reviewing the attendance log for the employee &#8220;<strong>Christina<\/strong>&#8221; during August, there were several days where she exceeded the allowed limit for lateness, and the lateness flag was applied on some of them:<\/p>\n<ul>\n<li>Tuesdays, November 28 (normal lateness).<\/li>\n<li>Monday, November 27 (lateness flag applied).<\/li>\n<li>Thursday, November\u00a0 23 (normal lateness).<\/li>\n<\/ul>\n<p>We will see the impact of this in a later step when we proceed to process her monthly salary.[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;Creating a Salary Component and Assigning it in the Contract&#8221; font_container=&#8221;tag:h2|font_size:28|text_align:center|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1701438564114{background-color: #f6f9fc !important;border-radius: 4px !important;}&#8221;][vc_column_text]The next step in creating the attendance flag is to establish the salary component, where we specify the deducted or earned amount based on the flag&#8217;s occurrence in the attendance log. For example, the &#8220;Late Arrival Flag&#8221; after the system calculates its total occurrences in the employee&#8217;s attendance log, we multiply this total by the amount we want to deduct from the salary for each occurrence.<\/p>\n<p>In the following image, you can observe this, as the attendance flag(after calculating its occurrences in the employee&#8217;s log by the system) has been added in the &#8220;Formula&#8221; field multiplied by 100. This means that every time the attendance flag occurs in the employee&#8217;s attendance log, 100 pounds are deducted from their salary.<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/ll.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11294 size-full\" title=\"\u0625\u0646\u0634\u0627\u0621 \u0628\u0646\u062f \u0627\u0644\u0631\u0627\u062a\u0628 \u0648\u062a\u0639\u064a\u064a\u0646\u0647 \u0641\u064a \u0627\u0644\u0639\u0642\u062f\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/ll.png\" alt=\"\" width=\"1046\" height=\"574\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/ll.png 1046w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/ll-300x165.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/ll-1024x562.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/ll-768x421.png 768w\" sizes=\"auto, (max-width: 1046px) 100vw, 1046px\" \/><\/a>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;alert-info&#8221; icon_fontawesome=&#8221;fas fa-book&#8221;]If you need assistance with this step, you can refer to the guide on <a href=\"https:\/\/docs.daftra.com\/en\/tutorial\/salary-components\/\" target=\"_blank\" rel=\"noopener\">Adding a New Salary Component<\/a>.[\/vc_message][vc_custom_heading text=&#8221;Adding a Salary Component to the Employee&#8217;s Contract&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]After creating the salary component, we need to add it to the employee&#8217;s contract. To do this, simply click on &#8220;<b>Payroll<\/b>&#8221; from the main menu, then &#8220;<b>Contracts<\/b>,&#8221; and choose the contract for employee &#8220;<strong>Christina<\/strong>.&#8221;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-34345 size-full\" title=\"Linking Salary Component to Employee Contract\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/Payroll-.png\" alt=\"\" width=\"1328\" height=\"508\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/Payroll-.png 1328w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/Payroll--300x115.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/Payroll--1024x392.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/Payroll--768x294.png 768w\" sizes=\"auto, (max-width: 1328px) 100vw, 1328px\" \/><\/p>\n<p>In the salary information section, specifically under &#8220;<b>Deductions<\/b>,&#8221; click &#8220;<b>Add<\/b>,&#8221; and choose &#8220;<b>One Hour Delay<\/b>.&#8221;<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/scxsssdfr.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11299 size-full\" title=\"Linking Salary Component to Employee Contract\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/scxsssdfr.png\" alt=\"\" width=\"1045\" height=\"584\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/scxsssdfr.png 1045w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/scxsssdfr-300x168.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/scxsssdfr-1024x572.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/scxsssdfr-768x429.png 768w\" sizes=\"auto, (max-width: 1045px) 100vw, 1045px\" \/><\/a>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;Creating a Pay Run to issue it&#8221; font_container=&#8221;tag:h2|font_size:28|text_align:center|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1701439047250{background-color: #f6f9fc !important;border-radius: 4px !important;}&#8221;][vc_column_text]After creating the salary component, we move on to the next and final step, which is to create a pay run for employee &#8220;Maria&#8221; to disburse her salary. This allows us to see the impact of her delays and the application of attendance flags on her salary. To complete this step, you can refer to the guide <a href=\"https:\/\/docs.daftra.com\/en\/tutorial\/pay-runs\/\">Issuing a Pay Run<\/a>.<\/p>\n<p>As seen in the following image, an amount of $200 was deducted from the salary of employee &#8220;Christina&#8221; due to the application of the one-hour delay flag twice. In each instance, $100 were deducted, as shown in the image below:<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/uiioo.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11301 size-full\" title=\"Creating a Salary Run for Disbursement\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/uiioo.png\" alt=\"\" width=\"1040\" height=\"588\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/uiioo.png 1040w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/uiioo-300x170.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/uiioo-1024x579.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/uiioo-768x434.png 768w\" sizes=\"auto, (max-width: 1040px) 100vw, 1040px\" \/><\/a>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<div class=\"post-inner-content\">\n<div class=\"entry-content\">\n<p>By this, we have completed the explanation of attendance flags in the system, with the application through a real example to understand how to implement them. In upcoming articles, we will apply more and more diverse attendance flags.<\/p>\n<\/div>\n<footer class=\"entry-meta\"><\/footer>\n<\/div>\n<p>[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/section>","protected":false},"author":16,"template":"","categories":[8012],"tags":[4940,4938,4939,4941,4935,4936,3440,4937],"class_list":["post-8971","user_manual","type-user_manual","status-publish","hentry","category-attendance-settings","tag-attendance-flags","tag-calculating-employee-attendance-days","tag-employee-attendance-log","tag-monitoring-employees-attendance","tag------en","tag----en","tag---en","tag-----en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Attendance Flags Guide - Daftra Knowledge Base<\/title>\n<meta name=\"description\" content=\"Learn how to add attendance rules in the system, apply them to the employee attendance log, and link them to the salary to easily calculate incentives and deductions automatically.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Attendance Flags Guide - Daftra Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"Learn how to add attendance rules in the system, apply them to the employee attendance log, and link them to the salary to easily calculate incentives and deductions automatically.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"Daftra Knowledge Base\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-13T12:02:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.daftra.com\/#website\",\"url\":\"https:\/\/docs.daftra.com\/\",\"name\":\"Daftra Knowledge Base\",\"description\":\"Daftra\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.daftra.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm.png\",\"contentUrl\":\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm.png\",\"width\":1054,\"height\":586},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/#webpage\",\"url\":\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/\",\"name\":\"Attendance Flags Guide - Daftra Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/docs.daftra.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/#primaryimage\"},\"datePublished\":\"2023-03-05T06:33:10+00:00\",\"dateModified\":\"2025-05-13T12:02:20+00:00\",\"description\":\"Learn how to add attendance rules in the system, apply them to the employee attendance log, and link them to the salary to easily calculate incentives and deductions automatically.\",\"breadcrumb\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.daftra.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Attendance Flags Guide\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Attendance Flags Guide - Daftra Knowledge Base","description":"Learn how to add attendance rules in the system, apply them to the employee attendance log, and link them to the salary to easily calculate incentives and deductions automatically.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/","og_locale":"en_US","og_type":"article","og_title":"Attendance Flags Guide - Daftra Knowledge Base","og_description":"Learn how to add attendance rules in the system, apply them to the employee attendance log, and link them to the salary to easily calculate incentives and deductions automatically.","og_url":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/","og_site_name":"Daftra Knowledge Base","article_modified_time":"2025-05-13T12:02:20+00:00","og_image":[{"url":"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/docs.daftra.com\/#website","url":"https:\/\/docs.daftra.com\/","name":"Daftra Knowledge Base","description":"Daftra","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.daftra.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/#primaryimage","inLanguage":"en-US","url":"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm.png","contentUrl":"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/03\/mmmm.png","width":1054,"height":586},{"@type":"WebPage","@id":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/#webpage","url":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/","name":"Attendance Flags Guide - Daftra Knowledge Base","isPartOf":{"@id":"https:\/\/docs.daftra.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/#primaryimage"},"datePublished":"2023-03-05T06:33:10+00:00","dateModified":"2025-05-13T12:02:20+00:00","description":"Learn how to add attendance rules in the system, apply them to the employee attendance log, and link them to the salary to easily calculate incentives and deductions automatically.","breadcrumb":{"@id":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.daftra.com\/en\/"},{"@type":"ListItem","position":2,"name":"Attendance Flags Guide"}]}]}},"_links":{"self":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/user_manual\/8971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/user_manual"}],"about":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/types\/user_manual"}],"author":[{"embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/users\/16"}],"version-history":[{"count":7,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/user_manual\/8971\/revisions"}],"predecessor-version":[{"id":34347,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/user_manual\/8971\/revisions\/34347"}],"wp:attachment":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/media?parent=8971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/categories?post=8971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tags?post=8971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}