Hi,
I have attached below the sample worksheet of Attendance Sheets & Leave Balance Sheet
https://www.dropbox.com/s/pxjpapduimf7sap/LEAVE%20BALANCE%20CALCULATION%20WORKINGS.xlsx?m
Following point need to consider before calcuating the Leave Balance
1) If the PL Leave Balance is Zero or Availed More than the Leave Balance adjust the Leave in SL Balance same for SL & CL Vice versa.
For Example: if the PL Leave Balance is 5 SL Leave Balance is 5 and CL Leave Balance is 5. If the Employee taken 7 Days in PL Leave first adjust 5 Days in PL and Balance in SL.
2) If there is no Leave Balance in PL , SL & CL Automatically marked as LOP
For Example: if the PL Leave Balance is 1 SL Leave Balance is 1 and CL Leave Balance is 1. If the Employee taken 7 Days in PL Leave first adjust 1 Day in PL, 1 Day in SL and 1 Day in SL and balance 4 Days marked as LOP.
3) In case of LOP is marked in Attendance Sheet it should be appear in LOP directly.
4) In case of PL Leave Taken from Friday to Tuesday Adjust the Leave as 4 Days. (It Should Consider Saturday & Sunday). This condition will apply for only PL.
I have attached below the sample worksheet of Attendance Sheets & Leave Balance Sheet
https://www.dropbox.com/s/pxjpapduimf7sap/LEAVE%20BALANCE%20CALCULATION%20WORKINGS.xlsx?m
Following point need to consider before calcuating the Leave Balance
1) If the PL Leave Balance is Zero or Availed More than the Leave Balance adjust the Leave in SL Balance same for SL & CL Vice versa.
For Example: if the PL Leave Balance is 5 SL Leave Balance is 5 and CL Leave Balance is 5. If the Employee taken 7 Days in PL Leave first adjust 5 Days in PL and Balance in SL.
2) If there is no Leave Balance in PL , SL & CL Automatically marked as LOP
For Example: if the PL Leave Balance is 1 SL Leave Balance is 1 and CL Leave Balance is 1. If the Employee taken 7 Days in PL Leave first adjust 1 Day in PL, 1 Day in SL and 1 Day in SL and balance 4 Days marked as LOP.
3) In case of LOP is marked in Attendance Sheet it should be appear in LOP directly.
4) In case of PL Leave Taken from Friday to Tuesday Adjust the Leave as 4 Days. (It Should Consider Saturday & Sunday). This condition will apply for only PL.