I thought others may wish to have the benefit of some learning on leave without pay.
I has erroneously assumed that by checking “depends on leave without pay” then declared variable would be updated on the basis of the LWP calculation eg bs=base/12. In fact the lwp calculation is applied to the net result of the earning or deduction caclulation and the variable id not updated.
Why is this important? Infact if your deductions are linear eg a straight % of say bs then it is not provided that you also check “depends on” in the deduction.
However, if the deduction is none linear eg in many tax calculations where rates are banded then the calculation will apparenetly fail. ie the calculation will be based on the non-adjusted bs and then a multiplier of the LWP factor applied afterwards.
The solution is to explicitly calulate the “bs” on the basis of the lwp data items ie.bs=(base/12)(base/12)(payment_days/total_working_days).
Then leave all the depends on’s unchecked.