You will have to pay back to your company the salary for the notice period. Not sure if there is any legal implication.