- Home
- Apps
- SaaS Tools
- End-of-Service & Gratuity Calculator
Illustrative previewA build-to-order ERPNext app that automates end-of-service benefit accrual and final-settlement (FNF) generation
using country-specific gratuity formulas across the GCC and Asia.
ECOSIRE scopes, builds, installs, and supports it on your Frappe/ERPNext v15/v16 bench.
What is End-of-Service & Gratuity Calculator?
A build-to-order ERPNext app that automates end-of-service benefit accrual and final-settlement (FNF) generation using country-specific gratuity formulas across the GCC and Asia. ECOSIRE scopes, builds, installs, and supports it on your Frappe/ERPNext v15/v16 bench. Built to order by ECOSIRE for ERPNext v15, v16 — indicative price from $999.00 USD; request a quote for a scoped proposal.
Key Features
Built to order, done for you
No DIY setup — a working app, built, installed and supported by ECOSIRE.
- 1
You order
Start with a one-time build price. We scope it with you at kickoff.
- 2
We build & install
ECOSIRE builds, configures and installs it on your ERPNext.
- 3
Go live + support
You go live in about one working week, with two weeks of go-live support. Defects in the code we deliver are fixed free of charge.
Technical Specifications
- ERPNext Compatibility
- —
- License
- Licence confirmation required
- Python Requirement
- Python 3.10+
- Database
- MariaDB 10.6+
About this Product
Finance teams running payroll on ERPNext hit a wall the moment they need a defensible end-of-service liability. ERPNext HR handles salary structures, payroll entries, and leave, but it has no native concept of a country-specific gratuity formula, no periodic accrual of the growing EOSB liability, and no final-settlement statement that reconciles gratuity, unpaid leave, notice-period adjustments, and outstanding dues into a single signed document. Most teams end up maintaining fragile spreadsheets that auditors distrust and that break the moment an employee resigns before completing a year, is terminated, or is paid in a different currency from the ledger.
ECOSIRE builds a proper Frappe app for this — a self-contained module you own outright, not a customization bolted onto core. At its heart is a Gratuity Rule DocType that encodes each jurisdiction's math as configurable slabs (for example UAE's 21-days-per-year for the first five years then 30 days thereafter, KSA's half-month/full-month split, Qatar's three-weeks minimum), including caps, eligibility thresholds, resignation-versus-termination multipliers, and the daily-wage basis. A scheduled End of Service Accrual job runs on a scheduler_events hook and posts periodic provision entries against a configurable liability account, so your balance sheet always reflects the true EOSB exposure rather than a year-end scramble. When an employee is separated, a Final Settlement DocType assembles the full FNF: earned gratuity, encashed or clawed-back leave, notice-period pay-in-lieu, pro-rated allowances, and deductions — all recomputed server-side.
Technically, the app ships as a versioned Frappe app installed with bench get-app and bench install-app. Calculation logic lives in whitelisted Python methods (@frappe.whitelist()) so it is callable from the Frappe REST API for downstream integrations and from client scripts on the form. hooks.py document events (on_submit, validate) keep GL postings and the linked Journal Entry in lockstep, while permission rules and a dedicated Role Profile keep gratuity provisioning visible only to HR and finance. Multi-currency settlement uses ERPNext's exchange-rate framework so an expatriate paid in USD but ledgered in AED settles at the correct booked rate. Print Formats produce an audit-ready settlement statement, and the whole thing is built and tested against Frappe/ERPNext v15 and v16.
Because this is build-to-order, nothing is a black box. We start with a short scoping call to confirm which countries, wage bases, and liability accounts you need, then build against your exact requirements. Typical delivery is one working week from confirmed scope. You receive the full source code, a UAT deployment on staging with a rollback plan, installation on your bench, technical and user documentation, a training session, and a post-go-live support window — plus the git repository so your team can extend it independently.
What you get
- Installable Frappe app source code for your ERPNext version (v15 or v16), yours to keep
- Installation and configuration on your bench, including gratuity rules, liability accounts, and role profiles
- Technical documentation covering DocTypes, hooks, whitelisted methods, and scheduler events
- User guide plus a live training session for your HR and finance team
- UAT deployment on a staging site with a documented rollback plan before production go-live
- Post-go-live support window for defect fixes and configuration adjustments
- Git repository handover so your team can maintain and extend the app independently
- Sample Print Format for the final-settlement statement, customizable to your branding
Who this is for
GCC HR Operations Manager
Runs payroll and separations for a UAE/KSA/Qatar workforce and needs gratuity computed exactly to local labour law, with a clean FNF statement employees and auditors accept without dispute.
Group Finance Controller
Wants the end-of-service liability accrued and posted to the balance sheet every period, not discovered at year-end, and needs it reconciled against a real GL account inside ERPNext.
Multi-country Payroll Lead
Manages staff across several GCC and Asian entities on one ERPNext instance and needs a single app that applies the right formula, wage basis, and currency per jurisdiction.
ERPNext Systems Administrator
Maintains the bench and wants a clean, versioned Frappe app with documented hooks and whitelisted methods that upgrades safely across v15/v16 rather than tangled core customizations.
How End-of-Service & Gratuity Calculator Compares
| Criterion | ECOSIRE | Custom Build | Competitor | ERPNext Native |
|---|---|---|---|---|
| EOSB liability accrual | Scheduled job posts periodic provisions to a GL liability account | Possible but you build and maintain the scheduler yourself | Rarely handles balance-sheet accrual, mostly final payout | No native EOSB accrual concept at all |
| Country-specific formulas | Configurable slabs per GCC/Asia jurisdiction with caps and multipliers | Hard-coded to whatever you specify, costly to extend | Often single-country or generic, limited configurability | None — must be built or spreadsheeted |
| Final settlement (FNF) statement | Dedicated DocType with audit-ready Print Format | Build the DocType and format from scratch | Basic statement if offered, limited adjustments | No FNF document; assembled manually |
| Multi-currency settlement | Uses ERPNext exchange-rate framework at booked rates | Depends on your developer's implementation | Frequently single-currency | Not applicable to gratuity, no gratuity object |
| Ownership & source code | Full source and git repo handed over, yours to extend | You own it but carry all build cost and risk | Licensed app, source typically closed | Core code, not a gratuity solution |
| Delivery & fit | Build-to-order in one working week, scoped to your entities | Longer timelines, requirements churn common | Instant install but generic, may not fit your law | Available now but does not solve the problem |
| Support & upgrades | Post-go-live window plus v15/v16 upgrade path | Whatever your in-house team can sustain | Vendor support quality and roadmap varies | Standard ERPNext support, no gratuity coverage |
Frequently Asked Questions about End-of-Service & Gratuity Calculator
How long does delivery take?
This is a build-to-order app, not an instant download. After a short scoping call to confirm countries, wage bases, and liability accounts, typical delivery is one working week from confirmed scope. Complex multi-country or heavily customized settlements may take longer, and we agree the timeline in writing before starting.
How do support and updates work after go-live?
Every build includes a post-go-live support window for defect fixes and configuration tweaks. Because you receive the full source and git repository, your team can extend it independently, and we offer ongoing support or v15→v16 upgrade work as a separate engagement whenever you need it.
Which countries and gratuity formulas are supported?
The `Gratuity Rule` DocType encodes country-specific slabs — UAE, KSA, Qatar, Oman, Bahrain, and Kuwait are common — with configurable caps, eligibility, resignation vs. termination multipliers, and wage basis. We build the exact jurisdictions you operate in; additional countries can be added as configuration rather than code changes.
Does this modify ERPNext core?
No. It ships as a self-contained Frappe app installed via `bench get-app` and `bench install-app`, using its own DocTypes, `hooks.py` doc events, whitelisted methods, and scheduler events. Core stays untouched, so your ERPNext upgrades stay clean.
Which ERPNext versions does it run on?
It is built and tested against Frappe/ERPNext v15 and v16. Tell us your current version at the scoping call and we target that; if you are mid-migration we can plan the build against your destination version.
How does the accrual post to the accounts?
A scheduled job runs on a `scheduler_events` hook and posts periodic provision entries to a liability account you configure, so your balance sheet reflects the growing EOSB exposure. On final settlement, `on_submit` doc events reconcile the accrued provision against the actual payout via linked Journal Entries.
Can we integrate the calculation with other systems?
Yes. The calculation runs in whitelisted Python methods exposed over the Frappe REST API, so external HR portals, dashboards, or offboarding workflows can request a gratuity or FNF computation programmatically and receive structured results.
Related Modules

Employee Loans & Salary Advances
A build-to-order ERPNext app for staff loans and salary advances, with configurable EMI schedules that auto-deduct through payroll and a live outstanding-balance ledger per employee. ECOSIRE scopes, builds, installs and supports it for you.

Employee Onboarding & Training (LMS Bridge)
A build-to-order Frappe app that wires Frappe LMS into ERPNext HR so new hires auto-enroll into role-based learning paths, and completions, certificates and quiz scores flow straight back onto the Employee record. ECOSIRE scopes, builds, installs and supports it — this is not an instant download.

ERPNext AI Copilot
A build-to-order in-app AI assistant for ERPNext that answers business questions, executes document actions, generates charts and schedules reports in plain English across any DocType. ECOSIRE scopes, builds, installs and supports it — request a quotation to start.

ERPNext Australia (BAS & ABA)
A build-to-order ERPNext app that adds Australian GST tax handling, BAS report data, ATO-aligned tax codes and ABA (direct entry) bank file generation. ECOSIRE scopes, builds, installs and supports it — this is not an instant marketplace download.
End-of-Service & Gratuity Calculator
A build-to-order ERPNext app that automates end-of-service benefit accrual and final-settlement (FNF) generation using country-specific gratuity formulas across the GCC and Asia. ECOSIRE scopes, builds, installs, and supports it on your Frappe/ERPNext v15/v16 bench.
- `Gratuity Rule` DocType encoding country-specific slabs (UAE 21/30-day tiers, KSA half/full-month split, Qatar, Oman, Bahrain, Kuwait) with configurable caps and daily-wage basis
- Resignation vs. termination multipliers and minimum-service eligibility thresholds enforced in server-side validation
- Scheduled EOSB accrual job via `scheduler_events` hook that posts periodic provision Journal Entries to a configurable liability account
- `Final Settlement` (FNF) DocType assembling gratuity, leave encashment, notice pay-in-lieu, allowances, and deductions into one submittable document