
Oman end-of-service gratuity ERPNext automation is one of the most practically valuable features available to any Omani private sector employer managing a mixed-nationality workforce. End-of-service gratuity is not optional in Oman. It is a statutory financial obligation defined precisely by the Ministry of Manpower under the Omani Labour Law, and the consequences of calculating it incorrectly range from costly disputes and Ministry complaints to labour court proceedings. For businesses managing dozens or hundreds of employees across different nationalities, tenures, and termination scenarios, manual gratuity calculation is a significant source of financial risk. ERPNext eliminates this risk entirely by automating every calculation, tracking every accrual, and generating every payment certificate in full compliance with Omani Labour Law. This guide explains exactly how it works.
Oman end-of-service gratuity ERPNext configuration begins with a precise understanding of the underlying legal framework. Omani Labour Law sets gratuity entitlements based on three intersecting variables: the employee’s nationality, the reason for separation, and the length of service. The interaction between these three variables creates a matrix of calculation scenarios that is straightforward for a single employee but becomes a significant administrative burden when applied manually across a large or growing workforce.
The table below maps the complete gratuity entitlement framework that ERPNext applies automatically for every Omani business:
| Nationality | Reason | Tenure | Gratuity Rate | Entitlement Level |
| Omani national | Resignation | 1 to 3 years | 15 days basic salary per year | Partial |
| Omani national | Resignation | Over 3 years | 1 month basic salary per year | Full |
| Omani national | Termination | Any tenure | 1 month basic salary per year | Full |
| Omani national | Retirement | Any tenure | 1 month basic salary per year | Full |
| Expatriate | Resignation | Under 1 year | No entitlement | None |
| Expatriate | Resignation | 1 to 3 years | One third of 15 days per year | Reduced |
| Expatriate | Resignation | 3 to 5 years | Two thirds of 15 days per year | Reduced |
| Expatriate | Resignation | Over 5 years | 15 days basic salary per year | Full |
| Expatriate | Termination | Any tenure | 15 days basic salary per year | Full |
Gratuity is calculated on basic salary only under the Omani Labour Law. Housing allowance, transport allowance, and other regular payments are excluded from the gratuity calculation base. ERPNext applies this distinction automatically by pulling only the basic salary component from the employee payroll record.
From employee record to automatic gratuity calculation in real time
Setting up the Oman end-of-service gratuity ERPNext automation requires a one-time configuration of gratuity rules within the HR Settings module. The configuration captures the nationality category, the reason for separation, the tenure band, and the applicable daily or monthly rate for each scenario in the rate table. Once configured, these rules apply automatically to every employee separation processed in the system. There is no manual lookup, no spreadsheet formula, and no risk of the wrong rate being applied due to a data entry error or a misread of the Labour Law text.
Every gratuity calculation in ERPNext draws from three fields in the employee master record: the date of joining, the basic salary at the time of separation, and the nationality. When an employee record is created or updated, ERPNext maintains a live tenure count in years and months from the joining date. If a salary revision is processed, the system updates the gratuity accrual figure automatically using the new basic salary. This means the gratuity liability shown in the finance ledger is always current and not a snapshot from the last manual calculation run.
When an employee separation is initiated in ERPNext, the HR team selects the reason for leaving from a configured dropdown: resignation, termination, retirement, end of contract, or death of employee. Oman end-of-service gratuity ERPNext logic then applies the correct rate from the configured rule matrix, calculates the exact gratuity entitlement to the day based on the actual last working date, and presents the result for HR and finance review before generating the final payment certificate. The entire process from separation initiation to gratuity figure takes under two minutes per employee.
ERPNext calculates gratuity to the exact day of service and not rounded to the nearest year. A 4-year and 8-month tenured employee receives the precise pro-rata calculation for the eight months beyond the four full years, consistent with Ministry of Manpower requirements.
The five examples below show how ERPNext applies the correct Labour Law formula for different nationalities, tenure, and separation scenario combinations. All calculations use the basic salary only, consistent with Omani Labour Law:
| Employee Scenario | ERPNext Calculation Logic | Formula | Gratuity Payable |
| Omani national, resigned, 5 yrs, OMR 700 basic | 1 month per year x 5 = 5 months | OMR 700 x 5 | OMR 3,500.00 |
| Expatriate, resigned, 2 yrs, OMR 500 basic | One third of 15 days x 2 yrs = 10 days | OMR 500 / 26 x 10 | OMR 192.31 |
| Expatriate, terminated, 8 yrs, OMR 900 basic | 15 days per year x 8 = 120 days | OMR 900 / 26 x 120 | OMR 4,153.85 |
| Omani national, retired, 15 yrs, OMR 1,400 basic | 1 month per year x 15 = 15 months | OMR 1,400 x 15 | OMR 21,000.00 |
| Expatriate, resigned, 4 yrs, OMR 650 basic | Two thirds of 15 days x 4 yrs = 40 days | OMR 650 / 26 x 40 | OMR 1,000.00 |
ERPNext uses 26 working days as the divisor for daily rate calculations, consistent with Omani Labour Law practice. This is automatically applied to all expatriate gratuity calculations where the entitlement is expressed in days rather than months.
Real-time gratuity liability in your Omani balance sheet
Gratuity accrual is the progressive accumulation of the gratuity liability your business owes to every active employee at any given point in time. In accounting terms, this is a provision liability that should appear on your balance sheet, growing with every passing month as employees accumulate tenure. Most Omani businesses that manage gratuity manually either do not carry this provision at all, leaving the balance sheet understated, or update it once a year during audit, leaving the figure stale for the other eleven months. Oman end-of-service gratuity ERPNext eliminates both problems.
ERPNext calculates the gratuity accrual for every active employee at the end of each payroll cycle and posts the monthly increase in the gratuity liability to a dedicated provision account in the chart of accounts. The debit entry posts to the gratuity expense account in the profit and loss, and the credit entry posts to the gratuity payable account on the balance sheet. Finance directors see the total end-of-service liability updating in real time after every payroll run without any manual journal entry.
The ERPNext gratuity accrual register shows the accumulated liability for every employee simultaneously, filterable by department, nationality, tenure band, or site. The example below shows a representative accrual register for a mid-sized Omani business:
| Employee | Nationality | Tenure | Basic Salary | Accrued Gratuity | Notes |
| Ahmed Al Balushi | Omani | 3 yr 4 mo | OMR 850 | OMR 2,975.00 | Resignation, full rate |
| Ravi Kumar | Indian | 6 yr 2 mo | OMR 600 | OMR 2,307.69 | Resignation, full rate |
| Sarah Mitchell | British | 1 yr 8 mo | OMR 1,200 | OMR 307.69 | Resignation, reduced rate |
| Mohammed Al Zaabi | Omani | 9 yr 0 mo | OMR 1,000 | OMR 9,000.00 | Termination, full rate |
| Priya Nair | Indian | 2 yr 5 mo | OMR 700 | OMR 411.54 | Resignation, one-third rate |
When an Omani external auditor requests the end-of-service liability schedule during the annual audit, ERPNext produces the complete gratuity accrual register with full calculation workings in a single report export. No manual preparation is required, and the figure ties directly to the balance sheet.
One of the most common gratuity calculation errors in Omani businesses managing this manually is failing to update gratuity calculations when an employee receives a salary revision. Under Omani Labour Law, gratuity is calculated on the final basic salary at the date of separation. ERPNext handles this correctly by design. When a salary revision is processed, the system recalculates the gratuity accrual from the employee’s joining date using the new basic salary figure, and the provision balance updates accordingly. Finance teams do not need to manually recalculate or adjust previous accrual entries.
A manually managed gratuity spreadsheet not updated after a salary revision will understate the liability if the salary has increased. Oman end-of-service gratuity ERPNext eliminates this risk by recalculating the full accrual balance automatically every time a salary record is modified.
Once a separation is processed and the gratuity figure is confirmed, ERPNext generates a gratuity payment certificate in both Arabic and English. The certificate shows the employee’s name, employee ID, joining date, last working date, years and months of service, basic salary, applicable rate, and calculated gratuity amount in OMR. The certificate serves as the formal record of the gratuity settlement and is essential for Ministry of Manpower compliance and any future employee enquiries.
When the gratuity payment is made, ERPNext processes a payment entry that debits the gratuity payable account on the balance sheet and credits the bank account. The provision balance reduces by the exact amount paid, the liability clears automatically, and the GL audit trail reflects the complete lifecycle from initial accrual to final settlement. For a full overview of how ERPNext manages HR compliance and payroll for Omani businesses, visit our ERPNext HR and payroll implementation guide for Oman.
Advantage: Oman end-of-service gratuity ERPNext automation prevents all six errors above by design. The correct rule is applied from the configured matrix, the basic salary is pulled from the payroll record, tenure is calculated to the day, and the balance sheet provision updates continuously.
Run the gratuity accrual report for your full active headcount before go-live and compare the total provision figure to your current balance sheet carrying value. Any difference needs to be reviewed and corrected before ERPNext becomes the system of record.
Oman end-of-service gratuity ERPNext automation gives every Omani private sector employer the precision, consistency, and financial visibility they need to meet their Labour Law obligations without manual calculation errors, balance sheet surprises, or employee disputes. The combination of a configured rule matrix, live accrual tracking, automatic salary-change recalculation, and audit-ready payment certificate generation makes ERPNext the most reliable approach to gratuity compliance available to Omani businesses of any size.
Every Omani business that continues to manage gratuity in a spreadsheet is one salary revision, one disputed termination, or one audit away from discovering how much those manual processes actually cost.
Contact Gazelle today for a free ERPNext gratuity configuration session and discover how your current workforce gratuity liability compares to what your balance sheet currently shows.