Stop earned leave calculate if employee on leave without pay

I have two leave type i creted in erpnex first is annual-leave witch erning 2.5 dayes first each month second leave type is leave without pay my ask is how to stop addin earning days as I mentioned in leave type (annual-leave) if employee on leave without pay and continue adding after return for example if employee hiring on 1 jan 2023 and he get approved for vacation without pay for 30 dayes so the total balance (annual-leave) type on end of year 31 dec 2023 should be 27.5 instead of 30