If you are dismissed while on sick leave
Since Law 15/2022, illness counts as grounds for discrimination, and more and more courts are declaring these dismissals void. Void means the company has to take you back and pay your wages for the time in between. If this is you, call before the 20 days are up.