Please see the following provision of the Income Tax Act, 1961:
(i) To reduce the existing threshold of cash payment to a person from twenty thousand rupees to ten thousand rupees in a single day; i.e. any payment in cash above ten thousand rupees to a person in a day shall not be allowed as a deduction in the computation of income from "Profits and gains of business or profession."
It says a company can pay in cash to one individual Rs. 10,000 in cash in a day, and it is perfectly legal to do so. However, for an employee, it would be difficult to show proof to the next employer because there won't be any bank passbook entry or a copy of a cheque. Therefore, it is better if your salary is credited to your bank account or a cheque is given to you for your salary.