{"id":38184,"date":"2025-10-08T07:50:19","date_gmt":"2025-10-08T07:50:19","guid":{"rendered":"https:\/\/docs.daftra.com\/?post_type=user_manual&#038;p=38184"},"modified":"2025-11-30T07:08:47","modified_gmt":"2025-11-30T07:08:47","slug":"attendance-flags-variables-and-salary-components-guide","status":"publish","type":"user_manual","link":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-variables-and-salary-components-guide\/","title":{"rendered":"Attendance Flags, Variables, and Salary Components Guide"},"content":{"rendered":"<section class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]Attendance and payroll variables in the system enable you to automate payroll adjustments for special cases, whether they apply to a single employee or a group of employees.<\/p>\n<p>For example, through these variables, you can deduct a percentage you set from an employee\u2019s salary if they are late by 10 minutes to their shift, and deduct a different amount if they are late by 20 minutes, without having to manually adjust salary deductions and entitlements.<\/p>\n<p>In this guide, we will explore a set of the most important variables and their uses.<\/p>\n<p>You can also reach out to our <a href=\"https:\/\/www.daftra.com\/contact\">support team<\/a> if you need assistance or would like to learn how to customize and apply these variables to serve your business needs.[\/vc_column_text][vc_custom_heading text=&#8221;Attendance Rules&#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_1757592478986{margin-left: 200px !important;background-color: #f6f9fc !important;border-radius: 4px !important;}&#8221;][vc_custom_heading text=&#8221;Number of Attendance Rule Occurrences \u2014 attendance flag count&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1757592487340{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1757592893769{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_sheet_flag_17.total_count}}<\/strong><\/p>\n<p style=\"text-align: left;\">Here, the number 17 represents the attendance rule ID. This is an automatically generated sequential number assigned to each attendance rule you create in the system.<\/p>\n<p style=\"text-align: left;\">Note that the identifier number you see on your account will most likely differ from the example shown (17).<\/p>\n<p>[\/vc_message][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<div class=\"wpb_text_column wpb_content_element vc_custom_1732204169647\">\n<div class=\"wpb_wrapper\">\n<p style=\"text-align: left;\">The system displays the number of times a specific attendance rule was triggered within the defined time period in the attendance log.<\/p>\n<\/div>\n<\/div>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example<\/strong>:<br \/>\nIf the attendance rule states that:<\/p>\n<p>The employee\u2019s Attendance Day Sign-In time must be &lt; 8<\/p>\n<p>And the formula is:<\/p>\n<p><b>1<\/b><\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/54433.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37049 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/54433.png\" alt=\"\" width=\"838\" height=\"117\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/54433.png 838w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/54433-300x42.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/54433-768x107.png 768w\" sizes=\"auto, (max-width: 838px) 100vw, 838px\" \/><\/a><\/p>\n<p>Then, if an employee has 10 days where they signed in earlier than 8:00 AM, the number of occurrences of this attendance rule in the attendance log will be \u201c<strong>10<\/strong>.\u201d[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Total Duration Calculated for Attendance Rule Occurrences \u2014 attendance flag amount&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759909517886{margin-left: 120px !important;}&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1757593024785{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_sheet_flag_17.total_value}}<\/strong><\/p>\n<p style=\"text-align: left;\">Here, the number 17 represents the attendance rule ID. This is an automatically generated sequential number assigned to each attendance rule you create in the system.<\/p>\n<p style=\"text-align: left;\">Note that the identifier number you see in your account will most likely differ from the example shown (17).<\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system displays the total calculated value (hours\/minutes) based on the fulfillment of a specific attendance condition.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><\/p>\n<p>If the attendance condition requires that:<br \/>\nThe employee\u2019s<strong> Attendance Day Actual Working Hours &lt; 8<\/strong><\/p>\n<p>And the employee has 8 days where their actual working hours were less than 8,<\/p>\n<p><strong>Then the calculation formula used would be:<\/strong><\/p>\n<p>Attendance Day Expected Working Hours \u2013 Attendance Day Actual Working Hours<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/titled.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37060 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/titled.png\" alt=\"\" width=\"1370\" height=\"158\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/titled.png 1370w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/titled-300x35.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/titled-1024x118.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/titled-768x89.png 768w\" sizes=\"auto, (max-width: 1370px) 100vw, 1370px\" \/><\/a><\/p>\n<p>The attendance log will therefore show the total number of hours calculated as the difference between the employee\u2019s expected working hours for the shift and their actual working hours, for all the days where the condition was met during the logged period.[\/vc_message][\/vc_column][\/vc_row][vc_row][vc_column][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;alert-warning&#8221; css=&#8221;.vc_custom_1757593282581{margin-left: 200px !important;}&#8221;]What is the difference between calculating time and date in hours versus using a timestamp format?<\/p>\n<p><strong>Hours Format:<\/strong><\/p>\n<p>The standard format for calculating date and time.<\/p>\n<p><strong>Example:<\/strong><br \/>\n11\/11\/2024 \u2013 10 AM<\/p>\n<p><strong>Timestamp Format:<\/strong><\/p>\n<p>A timestamp is a special format for storing date and time accurately. It is represented as a sequence of numbers and characters. It is used to compare the date\/time of multiple events in the system, such as when an employee profile was created or when a contract was modified.[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Sign-In (Hours):&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759909483450{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1757593354672{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.sign_in__hours}}<\/strong><\/p>\n<p>[\/vc_message][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system processes employee sign-in times in 24-hour format.<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nIf the employee\u2019s sign-in time is 9:00 AM, the system records it as \u201c<strong>9<\/strong>.\u201d<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Sign-In (Timestamp):&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759909466735{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759909457962{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.sign_in__timestamp}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system processes employee sign-in times in timestamp format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nIf the sign-in date and time are 8 September 2024, at 10:20 AM, it is converted into the following timestamp: 1725780000.<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Sign-Out (Hours):&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759147774847{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759909440338{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.sign_out__hours}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system processes employee sign-out times in 24-hour format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example: <\/strong>If the employee\u2019s sign-out time is 5:00 PM, it is recorded as \u201c<strong>17<\/strong>.\u201d<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Sign-Out (Timestamp)&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759147897454{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759909420845{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.sign_out__timestamp}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system processes employee sign-out times in timestamp format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nIf the sign-out date and time is 8 September 2024, at 5:00 PM, it is converted into the following timestamp: 1725804000.<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day On-Duty (Hours)&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759148045222{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759909400897{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.on_duty__hours}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system processes the shift start time in 24-hour format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nIf the shift start time is 9:00 AM, it is recorded as \u201c<strong>9<\/strong>.\u201d<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day On-Duty (Timestamp)&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759148177634{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759909382924{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.on_duty__timestamp}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system processes the shift start time in timestamp format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nIf the shift start date and time is 8 September 2024, at 10:20 AM, it is converted into the following timestamp: 1725780000.<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Off-Duty (Hours)&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759148295085{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759909362898{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.off_duty__hours}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system processes the shift end time in 24-hour format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nIf the shift end time is 5:00 PM, it is recorded as \u201c<strong>17<\/strong>.\u201d<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Off-Duty (Timestamp)&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759148416916{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759826870231{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.off_duty__timestamp}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system processes the shift end time in timestamp format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nIf the shift end date and time is 8 September 2024 at 5:00 PM, it will be converted into the following timestamp: 1725804000.<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Start of Sign-In (Hours)&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759826844458{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759909328590{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.beginning_in__timestamp}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system processes the beginning of the employee\u2019s sign-in period in 24-hour format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nIf the beginning of the sign-in period is 7:00 AM, the system records it as \u201c7.\u201d<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Start of Sign-In (Timestamp)&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759909314522{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759909307874{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.beginning_in__timestamp}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system processes the beginning of the sign-in period in timestamp format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nIf the start date and time of sign-in is 8 September 2024 at 7:00 AM, it is converted into the following timestamp: 1725768000.<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Start of Sign-Out (Hours)&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759909270337{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759909250513{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.beginning_out__hours}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system processes the beginning of the sign-out period in 24-hour format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nIf the beginning of the sign-out period is 7:00 AM, the system records it as \u201c<strong>7<\/strong>.\u201d<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Start of Sign-Out (Timestamp)&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759909232793{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759909224195{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.beginning_out__timestamp}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system processes the beginning of the sign-out period in timestamp format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nIf the start date and time of sign-out is 8 September 2024 at 5:00 PM, it is converted into the following timestamp: 1725804000.<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day End of Sign-In (Hours)&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759909196445{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759909173043{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.ending_in__hours}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system processes the end of the sign-in period in 24-hour format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nIf the end of the sign-in period is 5:30 PM, the system records it as \u201c<strong>17.5<\/strong>.\u201d<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day End of Sign-Out (Hours)&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759909135715{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759909081809{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.ending_out__hours}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system processes the end of the <strong>sign-out period<\/strong> in 24-hour format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nIf the end of the<strong> sign-out period<\/strong> is 7:00 PM, the system records it as \u201c<strong>19.<\/strong>\u201d<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day End of Sign-Out (Timestamp)&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759909588595{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759908910621{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.ending_out__timestamp}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system processes the end of the <strong>sign-out period<\/strong> in timestamp format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nIf the end date and time of sign-out is 8 September 2024 at 5:00 PM, it is converted into the following timestamp: 1725804000.<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Sheet Expected Working Hours&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759908150523{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759908791238{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_sheet.expected_working_hours}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system calculates the total expected working hours for the employee, recorded in hours format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nThe total expected working hours for an employee during September are 100 hours.<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Sheet Actual Working Hours&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759908101046{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759908093119{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_sheet.actual_working_hours}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system calculates the total actual working hours completed by the employee, shown in the attendance logs, recorded in hours format.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Example:<\/strong><br \/>\nThe total actual working hours completed by the employee during September are 90 hours out of 100 expected hours.<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Shift Type&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759908063547{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759908056369{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$shift.type}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]This variable is used only in attendance rule conditions or salary item conditions, not in the calculation formula (result of the condition). It checks whether the shift type is basic or advanced.<\/p>\n<p>When the defined shift type in the condition matches the employee\u2019s assigned shift (via attendance rules or via their contract), the calculation formula (result) is applied.[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><br \/>\n<strong>Condition:<\/strong><br \/>\nShift Type == Basic<\/p>\n<p><strong>Formula:<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Basic (Component) Amount * .5<\/span><\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/87665.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37076 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/87665.png\" alt=\"\" width=\"984\" height=\"239\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/87665.png 984w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/87665-300x73.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/87665-768x187.png 768w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/a>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Shift Type-Key&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759908044920{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759907995125{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$shift.type__key}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]This variable is used only in attendance rule conditions or salary item conditions, not in the calculation formula. It checks whether the shift type is basic or advanced.<\/p>\n<p>When the defined shift type in the condition matches the employee\u2019s assigned shift, the formula is applied.[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><\/p>\n<p><strong>Condition:<\/strong><br \/>\nShift Type (key) == standard<\/p>\n<p><strong>Formula:<\/strong><br \/>\nBasic (Component) Amount * .5<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8589493.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37081 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8589493.png\" alt=\"\" width=\"984\" height=\"239\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8589493.png 984w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8589493-300x73.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8589493-768x187.png 768w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/a>[\/vc_message][\/vc_column][\/vc_row][vc_row][vc_column][vc_empty_space][vc_custom_heading text=&#8221;Shift Name&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759907962300{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759907952093{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$shift.name}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">This variable is used to check the name of the shift. It can be used in attendance rule or salary item conditions, but not in the calculation formula.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><\/p>\n<p>Shift Name == Morning Shift<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/5949404.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37087 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/5949404.png\" alt=\"\" width=\"984\" height=\"239\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/5949404.png 984w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/5949404-300x73.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/5949404-768x187.png 768w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/a>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Leave policy status&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759907922054{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759907912440{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$leave_policy.status}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]This variable is used only in attendance rule or salary item conditions, not in the calculation formula. It checks whether the leave policy status is active or inactive.<\/p>\n<p>When the defined status in the condition matches the employee\u2019s assigned leave policy (through shift or contract), the formula is applied.[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><\/p>\n<p><strong>Condition<\/strong>:<br \/>\nLeave Policy Status == Active<\/p>\n<p><strong>Formula:<\/strong><br \/>\nBasic (Component) Amount * .5<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/565554.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37090 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/565554.png\" alt=\"\" width=\"984\" height=\"239\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/565554.png 984w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/565554-300x73.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/565554-768x187.png 768w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/a>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Leave policy status-key&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759907888854{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759907879058{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$leave_policy.status__key}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]This variable is used only in attendance rule or salary item conditions, not in the calculation formula. It checks whether the leave policy is active or inactive.<\/p>\n<p>When the defined status in the condition matches the employee\u2019s assigned leave policy, the formula is applied.[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><\/p>\n<p><strong>Condition:<\/strong><br \/>\nLeave Policy Status (key) == 1<br \/>\nor<br \/>\nLeave Policy Status (key) == 0<\/p>\n<p><strong>Formula:<\/strong><br \/>\nBasic (Component) Amount * .5<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/985494943.png\"><b><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37092 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/985494943.png\" alt=\"\" width=\"984\" height=\"239\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/985494943.png 984w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/985494943-300x73.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/985494943-768x187.png 768w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/b><\/a>[\/vc_message][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;alert-warning&#8221; css=&#8221;.vc_custom_1759902706346{margin-left: 200px !important;}&#8221;]<\/p>\n<blockquote><p><b>Note:<\/b><\/p>\n<p>This variable interacts with the database. Here, 1 = active policy and 0 = inactive policy.<\/p><\/blockquote>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Leave Policy Name&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759907847820{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759907838935{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$leave_policy.name}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">This variable is used to check the name of the leave policy. It can be used in attendance rules or salary item conditions, but not in calculation formulas.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><br \/>\n&#8220;Leave Policy Name&#8221; == &#8220;Company General Leave Policy&#8221;<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/940303.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37097 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/940303.png\" alt=\"\" width=\"984\" height=\"151\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/940303.png 984w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/940303-300x46.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/940303-768x118.png 768w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/a>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Status&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759907793747{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759907783581{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.status}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]This variable is used only in attendance rule or salary item conditions, not in the calculation formula. It checks whether the attendance day status is present\/absent \/ on leave.<\/p>\n<p>When the defined status matches the employee\u2019s attendance status, the formula is applied.[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><\/p>\n<p><strong>Condition:<\/strong><br \/>\nAttendance Day Status == Absent<\/p>\n<p><strong>Formula:<\/strong><br \/>\nBasic (Component) Amount * .5<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/9854985454.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37100 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/9854985454.png\" alt=\"\" width=\"984\" height=\"239\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/9854985454.png 984w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/9854985454-300x73.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/9854985454-768x187.png 768w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/a>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Status key&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759907769218{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759907732264{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.status__key}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]This variable is used only in attendance rule or salary item conditions, not in the calculation formula. It checks whether the attendance day status is present\/absent \/ on leave.<\/p>\n<p data-start=\"53\" data-end=\"388\">And when the specified attendance condition in the rule matches the attendance status of the employee\u2019s workday, whether assigned through the shift (if the condition is part of the attendance rules) or through the employee\u2019s contract (if the condition is part of the salary item) the calculation formula (condition result) is applied.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><br \/>\n<strong>Condition:<\/strong><\/p>\n<p>Attendance Day Status (key) == absent<\/p>\n<p><strong>Formula:<\/strong><br \/>\nBasic (Component) Amount * 0.5<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/67657889.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37102 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/67657889.png\" alt=\"\" width=\"984\" height=\"239\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/67657889.png 984w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/67657889-300x73.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/67657889-768x187.png 768w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/a>[\/vc_message][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;alert-warning&#8221; css=&#8221;.vc_custom_1759903193505{margin-left: 200px !important;}&#8221;]<\/p>\n<ul>\n<li><strong>Note:<\/strong><br \/>\nThis variable interacts with the system database. Therefore, statuses must be written exactly as in the database: present\/absent \/ on leave, all in lowercase.<\/li>\n<\/ul>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Calculation Type&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759907707462{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759907639980{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.calculation_type}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]This variable is used only in attendance rule or salary item conditions, not in the calculation formula. It checks whether the attendance calculation type is manual or automatic.<\/p>\n<p data-start=\"54\" data-end=\"388\">And when the specified attendance account type in the condition matches the employee\u2019s attendance account type, whether assigned through the shift (if the condition is part of the attendance rules) or through the employee\u2019s contract (if the condition is part of the salary item) the calculation formula (condition result) is applied.<\/p>\n<ul>\n<li aria-level=\"1\">\n<p data-start=\"57\" data-end=\"196\">The attendance account type is assigned for each day individually, even in the attendance log exported for a time period such as a month.<\/p>\n<\/li>\n<\/ul>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><br \/>\n<strong>Condition:<\/strong><br \/>\nAttendance Day Calculation Type == Manual<\/p>\n<p><strong>Formula:<\/strong><br \/>\nBasic (Component) Amount * 0.5<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/898998.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37112 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/898998.png\" alt=\"\" width=\"984\" height=\"239\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/898998.png 984w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/898998-300x73.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/898998-768x187.png 768w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/a>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Calculation Type Key&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759907572943{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759907557894{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.calculation_type__key}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]This variable is used only in attendance rule or salary item conditions, not in the calculation formula. It checks whether the attendance calculation type is manual or automatic.<\/p>\n<p data-start=\"70\" data-end=\"410\">And when the attendance account type specified in the condition matches the employee\u2019s daily attendance account type, whether assigned through the shift (if the condition is part of the attendance rules) or through the employee\u2019s contract (if the condition is part of the salary item) the calculation formula (condition result) is applied.<\/p>\n<ul>\n<li aria-level=\"1\">Each day has its own calculation type, even if the attendance sheet covers a longer period.<\/li>\n<\/ul>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><br \/>\n<strong>Condition:<\/strong><\/p>\n<p>Attendance Day Calculation Type Key == manual<\/p>\n<p><strong>Formula:<\/strong><\/p>\n<p>Basic (Component) Amount * 0.5<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/98443.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37114 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/98443.png\" alt=\"\" width=\"984\" height=\"239\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/98443.png 984w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/98443-300x73.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/98443-768x187.png 768w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/a>[\/vc_message][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;alert-warning&#8221; css=&#8221;.vc_custom_1759903826345{margin-left: 200px !important;}&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Note:<\/strong><br \/>\nThis differs from the previous variable as it interacts with the system database. Therefore, you must write the values exactly as in the database: manual\/automatic, all in lowercase.<\/p>\n<p>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Attendance Delay&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759907540997{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759907518233{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.attendance_delay}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system calculates the duration of delay after the scheduled shift start time.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example (Attendance Flag):<\/strong><br \/>\n<strong>Condition:<\/strong><br \/>\nAttendance Day Attendance Delay &gt;= 30<\/p>\n<p><strong>Formula:<\/strong><br \/>\n1<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/76688.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37116 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/76688.png\" alt=\"\" width=\"1378\" height=\"145\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/76688.png 1378w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/76688-300x32.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/76688-1024x108.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/76688-768x81.png 768w\" sizes=\"auto, (max-width: 1378px) 100vw, 1378px\" \/><\/a>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Early Leave&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759907120905{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759907099202{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.early_leave}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system calculates the duration of leaving earlier than the scheduled shift end time.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example (Attendance Flag):<\/strong><br \/>\n<strong>Condition:<\/strong><br \/>\nAttendance Day Early Leave &gt;= 30<\/p>\n<p><strong>Formula:<\/strong><br \/>\n1<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/234.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37118 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/234.png\" alt=\"\" width=\"1378\" height=\"145\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/234.png 1378w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/234-300x32.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/234-1024x108.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/234-768x81.png 768w\" sizes=\"auto, (max-width: 1378px) 100vw, 1378px\" \/><\/a>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Total Leaves Taken&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759907062995{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759907054542{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_sheet_leave_4.total_leave_taken}}<\/strong><\/p>\n<p style=\"text-align: left;\">The number 4 represents the leave type ID. It is an automatically generated sequential number assigned to each leave type created in the system.<\/p>\n<p style=\"text-align: left;\">Note that the identifier number in your system may differ from the example (4).<\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system calculates the total leaves taken during the current attendance sheet period for a specific leave type.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><br \/>\n<strong>Condition:<\/strong><br \/>\nSick Leave Total Leaves Taken &gt;= 2<\/p>\n<p><strong>Formula:<\/strong><br \/>\nBasic (Component) Amount * 0.10<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8799009.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37124 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8799009.png\" alt=\"\" width=\"1378\" height=\"145\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8799009.png 1378w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8799009-300x32.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8799009-1024x108.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8799009-768x81.png 768w\" sizes=\"auto, (max-width: 1378px) 100vw, 1378px\" \/><\/a>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Attendance Day Leave Count&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759906991903{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759906976573{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_day.leave_count}}<\/strong><\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system calculates the number of leave days deducted from the leave balance for a leave day or period.<br \/>\nFor example, one leave day may equal two days deducted, or partial attendance may result in only half a day being deducted.<br \/>\nIf the system\u2019s calculated deduction meets the condition, the \u201cattendance flag\u201d is triggered.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example (Attendance Rule):<\/strong><br \/>\n<strong>Condition:<\/strong><br \/>\nAttendance Day Leave Count &gt;= 2<\/p>\n<p><strong>Formula:<\/strong><br \/>\n1<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/0000.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37122 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/0000.png\" alt=\"\" width=\"1378\" height=\"145\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/0000.png 1378w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/0000-300x32.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/0000-1024x108.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/0000-768x81.png 768w\" sizes=\"auto, (max-width: 1378px) 100vw, 1378px\" \/><\/a>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Total Leaves Taken&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759906961733{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759906950724{margin-right: 550px !important;}&#8221;]{{$attendance_sheet_leave_<strong>4<\/strong>.total_leave_taken}}<\/p>\n<p style=\"text-align: left;\">The number 4 represents the leave type ID. It is an automatically generated sequential number assigned to each leave type created in the system.<\/p>\n<p style=\"text-align: left;\">Note that the identifier number in your system may differ from the example (4).<\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system calculates the total leaves taken during the current attendance sheet period for a specific leave type.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><br \/>\n<strong>Condition:<\/strong><br \/>\nSick Leave Total Leaves Taken &gt;= 2<\/p>\n<p><strong>Formula:<\/strong><br \/>\nBasic (Component) Amount * 0.10<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8799009.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37124 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8799009.png\" alt=\"\" width=\"1378\" height=\"145\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8799009.png 1378w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8799009-300x32.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8799009-1024x108.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/8799009-768x81.png 768w\" sizes=\"auto, (max-width: 1378px) 100vw, 1378px\" \/><\/a>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Total Leaves Taken Before&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759906938624{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759906801691{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_sheet_leave_4.total_leave_taken_before}}<\/strong><\/p>\n<p data-start=\"53\" data-end=\"212\">The number <strong data-start=\"64\" data-end=\"69\">4<\/strong> represents the leave type ID. It is a system-generated sequential number assigned automatically to each leave type you create in the system.<\/p>\n<p data-start=\"214\" data-end=\"323\">Note that the ID number that appears on your system may differ from the ID number shown in the example (4).<\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system calculates the total leaves taken before the current attendance sheet period for the specified leave type. If the condition is met, the formula is applied.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><br \/>\n<strong>Condition:<\/strong><br \/>\nSick Leave Total Leaves Taken Before &gt;= 2<\/p>\n<p><strong>Formula:<\/strong><br \/>\nBasic (Component) Amount * 0.10<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/09320923.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37128 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/09320923.png\" alt=\"\" width=\"1378\" height=\"145\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/09320923.png 1378w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/09320923-300x32.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/09320923-1024x108.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/09320923-768x81.png 768w\" sizes=\"auto, (max-width: 1378px) 100vw, 1378px\" \/><\/a>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Total Leaves After&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759906916101{margin-right: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759906770376{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_sheet_leave_4.total_leave_after}}<\/strong><\/p>\n<p data-start=\"55\" data-end=\"209\">The number <strong data-start=\"66\" data-end=\"71\">4<\/strong> represents the leave type ID. It is an automatically generated sequential number that the system assigns to each leave type you create.<\/p>\n<p data-start=\"211\" data-end=\"318\">Please note that the ID number displayed in your system may differ from the one shown in the example (4).<\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system calculates the total leaves taken during the current attendance sheet period plus those taken before it, for the specified leave type.<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><br \/>\n<strong>Condition:<\/strong><br \/>\nSick Leave Total Leaves After &gt;= 2<\/p>\n<p><strong>Formula:<\/strong><br \/>\nBasic (Component) Amount * 0.10<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/9909.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37131 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/9909.png\" alt=\"\" width=\"1378\" height=\"145\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/9909.png 1378w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/9909-300x32.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/9909-1024x108.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/9909-768x81.png 768w\" sizes=\"auto, (max-width: 1378px) 100vw, 1378px\" \/><\/a>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Leaves Credit Before&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759906752744{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759906739670{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_sheet_leave_4.leaves_credit_before}}<\/strong><\/p>\n<p data-start=\"56\" data-end=\"210\">The number <strong data-start=\"67\" data-end=\"72\">4<\/strong> represents the leave type ID. It is an automatically generated sequential number assigned to each new leave type you add to the system.<\/p>\n<p data-start=\"212\" data-end=\"319\" data-is-last-node=\"\" data-is-only-node=\"\">Please note that the ID number displayed in your account may differ from the one used in the example (4).<\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system calculates the total available leave balance for the employee from each leave type <strong data-start=\"146\" data-end=\"156\">before<\/strong> accounting for the leaves recorded in the current attendance log (the one intended for payroll processing to apply the salary component).<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><br \/>\n<strong>Condition:<\/strong><br \/>\nSick Leave Leaves Credit Before &lt;= 28<\/p>\n<p><strong>Formula:<\/strong><br \/>\nBasic (Component) Amount * 0.10<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/565443.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37135 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/565443.png\" alt=\"\" width=\"1378\" height=\"145\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/565443.png 1378w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/565443-300x32.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/565443-1024x108.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/565443-768x81.png 768w\" sizes=\"auto, (max-width: 1378px) 100vw, 1378px\" \/><\/a>[\/vc_message][vc_empty_space][vc_custom_heading text=&#8221;Leaves Credit After&#8221; font_container=&#8221;tag:h3|font_size:22|text_align:left|color:%2304306b|line_height:2&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1759906404413{margin-left: 120px !important;}&#8221;][vc_message message_box_color=&#8221;chino&#8221; icon_fontawesome=&#8221;fas fa-lightbulb&#8221; css=&#8221;.vc_custom_1759906396220{margin-right: 550px !important;}&#8221;]<\/p>\n<p style=\"text-align: center;\"><strong>{{$attendance_sheet_leave_4.leaves_credit_after}}<\/strong><\/p>\n<p data-start=\"48\" data-end=\"193\">The number <strong data-start=\"59\" data-end=\"64\">4<\/strong> represents the leave type ID. It is an auto-generated, sequential number assigned to each leave type you create in the system.<\/p>\n<p data-start=\"195\" data-end=\"315\">Note that the ID number displayed in your system will most likely differ from the ID number shown in this example (4).<\/p>\n<p>[\/vc_message][vc_column_text]<\/p>\n<p style=\"text-align: left;\">The system calculates the total leave balance available for the employee from each leave type after accounting for the leaves recorded in the current attendance log (for which the payroll is being generated to apply the salary item).<\/p>\n<p>[\/vc_column_text][vc_message message_box_style=&#8221;3d&#8221; message_box_color=&#8221;sky&#8221;]<strong>Example:<\/strong><br \/>\n<strong>Condition:<\/strong><br \/>\nSick Leave Leaves Credit After &lt;= 28<\/p>\n<p><strong>Formula:<\/strong><br \/>\nBasic (Component) Amount * 0.10<\/p>\n<p><a href=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/19293.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-37141 size-full\" src=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/19293.png\" alt=\"\" width=\"1378\" height=\"145\" srcset=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/19293.png 1378w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/19293-300x32.png 300w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/19293-1024x108.png 1024w, https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/19293-768x81.png 768w\" sizes=\"auto, (max-width: 1378px) 100vw, 1378px\" \/><\/a>[\/vc_message][vc_empty_space][\/vc_column][\/vc_row]<\/p>\n<\/section>","protected":false},"author":23,"template":"","categories":[8009,8012],"tags":[8561,8223,5022],"class_list":["post-38184","user_manual","type-user_manual","status-publish","hentry","category-attendance-en","category-attendance-settings","tag-attendance-management","tag-attendance-settings","tag-employee-management-app"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Attendance Flags, Variables, and Salary Components Guide - Daftra Knowledge Base<\/title>\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-variables-and-salary-components-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Attendance Flags, Variables, and Salary Components Guide - Daftra Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"[vc_row][vc_column][vc_column_text]Attendance and payroll variables in the system enable you to automate payroll adjustments for special cases, whether they apply to a single employee or a group of employees. For example, through these variables, you can deduct a percentage you set from an employee\u2019s salary if they are late by 10 minutes to their shift, and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-variables-and-salary-components-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"Daftra Knowledge Base\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-30T07:08:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/54433.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=\"27 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-variables-and-salary-components-guide\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/54433.png\",\"contentUrl\":\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/54433.png\",\"width\":838,\"height\":117},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-variables-and-salary-components-guide\/#webpage\",\"url\":\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-variables-and-salary-components-guide\/\",\"name\":\"Attendance Flags, Variables, and Salary Components Guide - Daftra Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/docs.daftra.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-variables-and-salary-components-guide\/#primaryimage\"},\"datePublished\":\"2025-10-08T07:50:19+00:00\",\"dateModified\":\"2025-11-30T07:08:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-variables-and-salary-components-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-variables-and-salary-components-guide\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-variables-and-salary-components-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.daftra.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Attendance Flags, Variables, and Salary Components Guide\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Attendance Flags, Variables, and Salary Components Guide - Daftra Knowledge Base","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-variables-and-salary-components-guide\/","og_locale":"en_US","og_type":"article","og_title":"Attendance Flags, Variables, and Salary Components Guide - Daftra Knowledge Base","og_description":"[vc_row][vc_column][vc_column_text]Attendance and payroll variables in the system enable you to automate payroll adjustments for special cases, whether they apply to a single employee or a group of employees. For example, through these variables, you can deduct a percentage you set from an employee\u2019s salary if they are late by 10 minutes to their shift, and [&hellip;]","og_url":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-variables-and-salary-components-guide\/","og_site_name":"Daftra Knowledge Base","article_modified_time":"2025-11-30T07:08:47+00:00","og_image":[{"url":"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/54433.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"27 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-variables-and-salary-components-guide\/#primaryimage","inLanguage":"en-US","url":"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/54433.png","contentUrl":"https:\/\/docs.daftra.com\/wp-content\/uploads\/2024\/11\/54433.png","width":838,"height":117},{"@type":"WebPage","@id":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-variables-and-salary-components-guide\/#webpage","url":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-variables-and-salary-components-guide\/","name":"Attendance Flags, Variables, and Salary Components Guide - Daftra Knowledge Base","isPartOf":{"@id":"https:\/\/docs.daftra.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-variables-and-salary-components-guide\/#primaryimage"},"datePublished":"2025-10-08T07:50:19+00:00","dateModified":"2025-11-30T07:08:47+00:00","breadcrumb":{"@id":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-variables-and-salary-components-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-variables-and-salary-components-guide\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.daftra.com\/en\/user_manual\/attendance-flags-variables-and-salary-components-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.daftra.com\/en\/"},{"@type":"ListItem","position":2,"name":"Attendance Flags, Variables, and Salary Components Guide"}]}]}},"_links":{"self":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/user_manual\/38184","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\/23"}],"version-history":[{"count":12,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/user_manual\/38184\/revisions"}],"predecessor-version":[{"id":41133,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/user_manual\/38184\/revisions\/41133"}],"wp:attachment":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/media?parent=38184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/categories?post=38184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tags?post=38184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}