A worker entitles of 21 days salary after completing one year of service. It is the labor law of Qatar. If you didn't follow the rules of the work place and didn't complete the notice period, then you’ll have to bear a deduction in your 42 days salary and you may receive the gratuity after deduction.