Funny. In Spain (and I'm sure other countries) you are owed severance pay and can claim unemployment benefits in case your employer fires you/laids you off, but not in case you resign on your own.
Few employers would "fire" an employee resigning (also, "asking" to be fired is highly illegal), unless he/she were a very recent hire for which severance pay would be low.
Few employers would "fire" an employee resigning (also, "asking" to be fired is highly illegal), unless he/she were a very recent hire for which severance pay would be low.