Version :orangehrm-2.6.1-rc.2.6472
Description : Leave request should be spans according to the Leave Period changes.This is a acceptance test case in the Leave Module enhancement.
Here is the acceptance test case:
If an employee applies for a range of days of leave that spans 2 leave periods, when approving/rejecting, it is considered as 2 leave requests - one per each leave period (based on the latest leave period definition on the day of approving/rejecting).
Note :
1. Before fix this issue better to discuss with the Himath.Because the fix may be cause to introduce many defects in the leave module.
2.The current behavior is not match with the above acceptance but that behavior also can be accepted.