# Mark Leave Without Pay When Attendance Is Below Required Hours

**YouTube:** [How to Mark Leave Without Pay if attendance is less than required hour?](https://www.youtube.com/watch?v=NUxNu4z5fLw)

## How to Mark Leave Without Pay if attendance is less than required hour?

In this tutorial, we will learn how to configure Logic ERP to **automatically mark leave** for employees who work **less than the minimum required working hours**. This automation ensures accurate attendance and payroll processing.

***

### **Accessing the Attendance Register**

* Navigate to the **Payroll Entry** menu.
* Open **Attendance Register – Month Wise**.
* Search for the employee and check that the attendance for the selected day is **not already marked**.

<figure><img src="/files/xXXuXxvWsSYN3f0EkPEB" alt=""><figcaption></figcaption></figure>

***

### **Configuring Auto Leave for Minimum Working Hours**

* Click on **Configuration**.
* Locate the option labeled as “**Mark Work for Less Than Minimum Hour For”**.
* From the dropdown, select **Leave Without Pay (LWP)**.

<figure><img src="/files/4FC1Fz3oDPWAKNEx9WMz" alt=""><figcaption></figcaption></figure>

* This setting ensures that employees working less than the defined minimum hours will be **automatically marked as LWP (Leave Without Pay)**.
* Minimum working hours are configured in **Employee Setup**, and the system will fetch the value from there.

<figure><img src="/files/ynoZvFmJl4j9lxgPTzQG" alt=""><figcaption></figcaption></figure>

* Save the configuration.

***

### **Import Attendance Data**

* Navigate to Payroll Entry and then select **Import Attendance Data from External Source**.
* Select the appropriate **Import Configuration**.
* Enable **Show Employees in File Only**.
* Define the **attendance month date range**.
* Select the **Branch** and click **Start Import**.

<figure><img src="/files/0uyaylxnFh76f3x5wVZq" alt=""><figcaption></figcaption></figure>

* The system will fetch the attendance data from the external file.

***

### **Review Imported Attendance**

* The imported attendance will display:
  * Shift In / Shift Out timing
  * Total working hours for each day
* On the selected date (e.g., 30th), you can see the employee worked **only 3 hours**, which is **less than the minimum required hours**.

<figure><img src="/files/OCPOxKVJpfaiBXxEt2Pt" alt=""><figcaption></figcaption></figure>

* Save the imported attendance.

### **Verify Auto Marked Leave**

* Return to **Attendance Register – Month Wise**.
* Click the **Refresh** button.
* The updated attendance will now be displayed.
* Check the date where the working hours were less than the minimum (e.g., 30th).
* The system has automatically marked the employee as **Absent – Leave Without Pay**, based on the configuration.

<figure><img src="/files/51LCiyFp4VNHsFPhsCaD" alt=""><figcaption></figcaption></figure>

***

### **Conclusion**

By enabling this setting, Logic ERP can automatically detect when employees work below the minimum required hours and mark their attendance as **Leave Without Pay**. This ensures accuracy in attendance management and prevents payroll discrepancies.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.logicerp.com/logic-erp-installation-configuration-and-troubleshooting-solutions/faqs/payroll/mark-leave-without-pay-when-attendance-is-below-required-hours.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
