This PHPMaker 2024 project will show you how to get the actual working days of Employee’s Leave, by excluding the Holidays and Weekend Days (Saturday and Sunday), so that those days will not be included as the Number of Days of Employee’s Leave.
It will also check whether a Date is conflict with the certain Date Range. In addition, if Two Dates conflict with the certain Date Range, then system will also prevent such data inserted into the Database.
Imagine if you do not handle this, then system will allow to store Employee’s Leave with Date Periode (for example) 2023-04-03 to 2023-04-06 with another conflicted period: 2023-04-05 to 2023-04-07 for the same Employee! The two date periods appear to overlap between one to another, and this project will not allow it is saved into Database.
There are actually many things we can learn from this PHPMaker 2024 project:
- How to get All Dates from the certain Date Range using Row_Inserting server event.
- How to exclude Saturday and Sunday from the certain date range.
- How to exclude Holidays from Database based on the certain date range.
- How to insert Leave Monitor after inserting Leave History record using Row_Inserted server event.
- How to save Dates of Employee’s Leave in Multiple-Lines Value into a Field of Database.
- How to update Leave Monitor after inserting the Leave History record using Row_Inserted server event.
- How to update Total Taken and Balance of Employee’s Leave after deleting Leave History record using Row_Deleted server event.
- How to calculate the Actual Number of Days of Employee’s Leave using Row_Inserting server event.
- How to limit Minimum Date in DateTimePicker control to Today’s Date.
- How to validate Minimum Date using Form_CustomValidate in Client Scripts.
- How to validate End Date must be greater or equal to Start Date in Row_Inserting server event.
- How to make text in a field Right-Align only in List Page, but Left-Align in View Page and Master Page.
- How to calculate the Leave’s Balance by substracting Maximum Leave and Total Leave Taken via Row_Inserted server event.
- How to check whether a Date or even Two Dates is conflict with the certain Date Range.
- How to prevent two Date Ranges conflicted (sliced between one to another) to be saved into the Database.
- How to create global functions to check wheter a Date or Two Dates is conflict with the certain Date Range
- How to create button on each record in List Page of Employees to open Add Page in Modal dialog of Leave History.
- How to handle the possibility of Employee’s Leave that will be happened on Next Year.
- How to make sure maximum Year of Start Date and maximum Year of End Date must be on Next Year.
- How to prevent Employee’s Leave that will be happened Over Next Year.
- How to use Option Template for the display Lookup Field looks different between the one in Extended Search and the one in each row Table of List Page.
- How to implement Ajax by API and Client Scripts to display the recommended Year when an Employee ID is being selected.
Reviews
There are no reviews yet.