Leave Request
Use Leave Request when an employee needs a formally tracked absence request that goes through approval and balance validation. In ziperp-base the request is split across a live request list, a create form, and day-wise leave-detail logic, so the real workflow is more than just entering dates and clicking submit.
Live Entry Point And List Behavior
The live ESS route opens as a request hub, not just a passive history page. The list screen contains:
Leave TypeDate FromToGoClear
The request grid shows these columns after filtering:
Emp CodeEmployee NameRequest IdLeave TypeEntry DateFrom DateTo DateLeave DaysRequest Status
The list also gives quick navigation to:
Cancelback to the ESS dashboardMy Reportees Leave details
What The Create Screen Prefills
When the employee opens the create form, the controller and view prefill or control these values automatically:
Entry Dateis set to the current date and kept read-only for a new requestEmployeeis filled from the logged-in userLeave Typeis loaded only from leave types assigned to that employeeFrom Datedefaults to the current date for a new request
This means the request can only be created against leave categories already assigned to the employee in HRMS.
Main Fields On The Create Screen
The request form contains these user-facing fields:
Entry DateEmployeeLeave TypeTotal DaysAs On Date BalanceFrom DateTo DateLeave DaysTotal BalanceReasonAttachments
Below the header, the page can open a day-wise leave grid with these columns:
Leave DateAttendance StatusApply Leave
The badge action on the grid lets the user push the same leave selection down across rows instead of changing each date one by one.
Mandatory Controls And Save Checks
The visible mandatory markers on the form are:
EmployeeLeave TypeFrom DateTo Date
The actual request logic enforces more than those markers:
From Datemust be earlier than or equal toTo Date- the selected employee must have at least one assigned leave type, otherwise the screen shows an alert and cannot continue cleanly
- the day-wise leave grid is built only when
From Date,To Date,Entry Date,Employee, andLeave Typeare all present - when the policy restricts continuous leave, the request is blocked if the selected range exceeds the configured limit
- when sufficient balance is required, the requested leave days cannot exceed
As On Date Balance
Policy And Date Conditions Applied By The Script
The create script checks several policy-driven conditions before the user can submit successfully:
- salary-approved dates are loaded and used to prevent leave application on payroll-locked dates
- DOJ and DOL are loaded and used to stop leave request rows that fall outside the employee's service period
- sandwich-leave rows are auto-generated where the leave policy inserts them
- existing leave or existing request rows in the selected period are detected and excluded from normal application flow
- negative leave is handled through leave-type settings such as
IsNegativeAllowedandIsSufficient
This is why the employee should not treat the form as a single summary request. The system evaluates each date in the selected range.
What Happens When You Click Go Or Change Leave Type
The request behavior is dynamic:
- changing
Leave Typereloads the policy settings for that leave type - changing
From DateorTo Datereruns date-range validation and rebuilds the detailed leave rows - clicking
Goon the list page filters the employee's request history for the selected leave type and date range
On the create form, the detailed date grid is not just informational. It decides how many dates are actually applied as full leave, half leave, sandwich leave, or blocked dates.
Normal Working Sequence
- Open the Leave Request list and use
Leave Type,Date From, andToif you first need to review request history. - Create a new request and confirm that the prefilled employee is correct.
- Select the assigned
Leave Typeso the correct balance and policy settings are loaded. - Enter
From DateandTo Date. The system recalculates the request and builds the day-wise leave rows. - Review
Total Days,Leave Days,As On Date Balance, andTotal Balancebefore continuing. - If the day-wise grid appears, review every row and confirm the
Apply Leavevalue for the affected dates. - Enter
Reasonand attach documents if the leave policy or approver expects support. - Click
Submitonly after the balance, row-level dates, and policy checks look correct.
What Usually Blocks Submission
- no leave type is assigned to the employee
- the date range crosses payroll-approved dates
- one or more dates are already covered by another leave or existing request
- the request exceeds the allowed continuous-leave limit
- the employee does not have sufficient leave balance for the requested days when sufficient balance is enforced
When the balance rule fails, the server returns a clear failure message: the employee does not have enough leave balance for processing the request.
What Happens After Submission
- the request is saved or updated through the ESS leave-request CRUD flow
- attachments are stored against the request id
- notification devices and notification email logic are triggered for the
ESSLRevent - the request returns to the list with workflow status for later approval tracking
Practical Guidance For Users
- select the leave type before relying on the balance boxes, because both available balance and leave policy are leave-type specific
- review the day-wise grid carefully on longer date ranges, especially where weekends, holidays, or sandwich rules may change the effective leave days
- use the reason field for approval context, not as a substitute for attachment when the policy needs medical or supporting proof
- if the request period touches salary-approved dates or past processed periods, expect the system to reduce or reject the applicable dates instead of accepting the whole range blindly
Mobile App Differences
Leave Request uses the same leave policy, balance, holiday, attendance period, approval route, and employee permissions on mobile. Mobile combines balance checking, request entry, and personal request tracking in one phone-friendly flow.
| Area | Mobile app behavior |
|---|---|
| Request list | The signed-in employee’s requests appear as cards with their dates, leave type, duration, and available status information. Refresh the list before raising a replacement request. |
| Balance | The app can show the current leave balance and calculate an as-on-date balance for the selected date. The displayed balance can change after the date or leave type changes. |
| Request form | Leave type, from and to dates, full or partial day selection, reason, contact or handover information, and other policy-controlled fields are arranged vertically. |
| Request detail | Tap a request to review its dates, duration, reason, status, and other saved information. Delete is shown only when the request and permission rules allow it. |
Raising Leave From The Mobile App
- Open ESS > Leaves, review the available balance, and check the existing list for overlapping or duplicate requests.
- Start a request, select the leave type, then choose the from and to dates and any half-day or session values shown by the form.
- Wait for the duration and balance to recalculate. Complete the reason and all required contact, handover, attachment, or policy fields.
- Review the final dates and leave days before submitting. Reopen the request to confirm its saved status.
- Delete only an eligible incorrect request. If it is already approved, use Leave Cancellation rather than deleting it.
Actions Available Only On Desktop
Use the desktop Leave Request pages when you need to:
- approve, reject, or send back employee leave requests
- review requests for a team or multiple employees
- maintain leave policies and eligibility rules
- adjust leave balances or perform bulk processing
- correct attendance or payroll effects outside the employee request