We have three types of leave Paid, Unpaid, Partially/Half Pay
For example: there are two wagetype: WagetypeA & WagetyepB
Following table show how the calculation of wagetype should be done depending on leave type.
Cells highlighted in green are working fine. But cells highlighted in red are not possible.
Partially Paid leave/ Half Pay
If we Absence valuation counting class specify percentage, then it will be applicable for all wagetype. But in our scenario we want different behavior depending upon wagetype.
Kindly please suggest on this.
You can go through the below document and thre. By which i think you can able to get an idea about solution design.