Your previous employment must have ended through no fault of your own. This means that you can only receive a benefit when your employer has terminated your contract, or when the contract has run out. No benefit is granted when you have left your job by choice, on your own initiative, or following a mutual agreement with your employer, or when you have been dismissed due to an infringement, loss of confidence, or indecent act or act of corruption.
The one exception to this rule is when you have resigned on your own initiative because the employer breached the contract by violating the terms and conditions of the contract or changed the organisation of production or work.
Some employers prefer to end employment agreements by mutual consent, because this is the easiest and most conflict-free way to do so. Be sure to understand the consequences concerning your right to benefits before you enter in such an agreement.