To include allowances in leave encashment calculation, please do as follows:
Go to the Payroll module and click Pay Element Setup.
Select the allowance and click on the three-dotted button.
Select Subject to GRP from the left panel and arrow over to the right.
Click Save.
Go to Pay Records, highlight the affected employees, and Recalculate.
