The payment of gratuity act, 1972(amended 2018), governs gratuity payment in India.
The basic eligibility for gratuity payment is an employee has uninterruptedly rendered his services for that period.
The uninterrupted definition includes services that have been discontinued due to several conditions.
These includes sickness, leave, accident, absence sans leave provided establishment does not mark such absence as break from employment.
In your situation even though you have been sent to Germany, there was no break in service and your service has been reckoned as continuous and uninterrupted services which can be evidently seen from the deductions towards PF and other statutory deductions from your salary payment during the period of employment at Germany too.
For the sake of convenience, the employers can refer to the specific formulas mentioned in the Payment of Gratuity Act, 1972 when calculating the gratuity amount.
The formula is expressed as follows :
Gratuity = N*B*15/26
N = number of years of service in a company
B = last drawn basic salary plus DA;
Thus your employer has to pay gratuity as per the last salary drawn by you irrespective of the fact whether it was in India or in a foreign country.
If the salary last draw Was equal to INR 20,00,000/- then the employer has to pay the basic salary and dearness allowance components of the said salary for number of years that you served your employer.
You have repaid the amount towards breach of contract hence there is no question of deduction of the same from gratuity payment.
You are not begging the employer neither he is showing any sympathy towrds you by paying the gratuity amount.
He is obliged to pay the same as per subsisting rules.
If your employer refuses to pay the gratuity amount as per your eligibility, you can drag him to court of law for recovery of the same.
The HR is not the authority neither your employer is an authority to decide about the quantum of gratuity payment to you.
They are bound by the Indian laws in this regard hence they cannot compare anything with the payment of gratuity amount to reduce the same.
You can resort to legal action if your requests falls on the deaf ears of the employer.