As a neighboring Croatian I'm not 100% certain about Hungary but it seems very similar, so I think you need to chat with a few lawyers about this, the case about guy getting fired for coming to work drunk and then being rehired and the employer forced to pay the salaries in between because he couldn't prove his claim isn't made up :)