It is a big NO in my country to do this by the companies. If they do, they will be in a difficult situation. The rule of thumb is they will hold the salary for a month after the date of resignation, before he or she can have it.In my opinion, this is unfair and inhumane. After all, the salary that has not been paid is the employee's right, if it is not paid just for the reason of resigning then it is an evil and unjust act. But indeed there are some companies that stipulate penalties that must be paid by employees who leave before the completion of the work contract. I don't know I can't stop thinking.