Hi
As rightly mentioned by the learned member, the payment of Gratuity arises only after the employee services are severed by any of the following means termination/retirement, permanent disablement, death or superannuation only.
Gratuity is not paid while a person still serving the company/organization.
Thanks and Regards