Compensation is always worked out on Basic salary and dearness allowances. But if the salary is structured in such a fashion that basic salary is restricted to a small amount so as to reduce burden of so many statutory contributions and payments by the employer like, PF, Bonus, etc, and if the worker is in a position to prove that the total salary has been structured like Basic + HRA+ other allowances just for employer's convenience and at the same time the the employer used to collect NOTICE PAY on GROSS SALARY, then compensation on retrenchment should also be calculated on that gross salary.
Amount of gratuity payable to an employee should not be adjusted against any dues from the employee. Even a loan from the company can not be adjusted against gratuity. Gratuity can be forfeited only to the extend of damages caused by the employee due to his militant attitude during the course of employment. Similarly, gratuity can be withheld if the employee is dismissed for an offence involving moral turpitude and not for any offence less than that.
Regards,
Madhu.T.K