ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Salary and Deduction


Hi there,

Using the salary structure in the HR module.
All deductions should be linked to an account into ERPNext.
At the moment, deductions are taken out (in the salary structure) but they are not put anywhere.
If deductions are for taxes or other government liabilities (pension scheme, health care) , they should be put into these liabilities account.
If a deduction is because of a loan to the employee, then again it should be link to the employee (as a debtors)

So I suggest that in the salary structure, each deduction line (with deduction type) is linked to an account. When the salary slip is processed, then these deductions have to be credited / debited in the account indicated on the deduction line.

At the moment, the deduction lines are not very useful, as the amounts are not deducted form anywhere.

Any suggestion on how to make the salary structure / slips more useful accounting wise?

Salary structure - earning and deduction as percentage of basic

Sorry I bumping this up again.
Isn’t there anybody else who is processing salaries (from salary structure) and is having to make deductions that are actually liabilities (income tax, pension tax, health care legal requirements, etc.)


Hi Francois, we’ll have a similar situation here, only if we make it to manage salaries, deductions, loans, etc… within ERPNext (fingers crossed!)

By now we’re behind such worries, just experimenting with (minimal) accounting, roles, items, buying and selling, etc…

If you happen to solve it (be it a new feature or a workaround) we’d love to read about your experience.

Salary Slip double entry

Not sure if there is any news on this but here are similar threads on the same topic.

I think all of it can be achieved using same-ish logic of template for sale/purchase tax & charges.



Just seeing this thread. I think these are very important updates that need to be made to the HR Module

Just as Earning Types are generally calculated as percentages of the Basic Salary, Deduction Types are also usually calculated as percentages of specified Earning Types. For example, a Tax deduction could be say 7.5% of all Earnings except ‘Reimbursables’. It would help to be able to select all the specific Earning Types that should be taken into account when calculating a Deduction Type

An additional request is being able to settle an Expense Claim via an Earning Type for an Employee. A lot of times, Expense Claims (both for regular Expenditures and for Overtime) are paid back to Employees as ‘Reimbursables/Overtime’ which is an Earning Type in the Salary Structure

To sum it up, Salaries and Deductions are dynamic elements in any organisation but the way ERPNext currently handles this is too rigid and manual!

  1. Better handling of Deductions so that relevant accounts can be specified and journals raised accordingly to book these entries
  2. Earnings in Salary Structure as a percentage of specified Earning Types (ie Basic Salary)
  3. Deductions in Salary Structure as a percentage of specified Earning Types
  4. Option to settle Expense Claims via an Earning Type

If these features can be added, it would go a VERY long way in improving the Payroll/Accounting features of ERPNext


Kind regards,


Bump to these thread! It will be so much better if those features mentioned by @Francois_Ifitwala and @wale added!! Especially for the deduction feature.


‎And while we’re on this topic, one of the major lacking features which has baffled me for a long time is the ability to link Attendance to Payroll. I mean, this is so fundamental to the way many organizations handle payroll. In fact, the whole point of Attendance taking in most cases is to link it to Payroll!

There should be an option to automatically calculate Absent Days and Half Days as Full Pay, Half Pay, or No Pay

Kind Regards,

Olawale‎From: Christopher SatriandaruSent: Monday, April 11, 2016 12:35 PMTo: wale@xavierltd.comReply To: Frappe DiscussSubject: [frappe-discuss] [Enhancement] Salary and Deduction


April 11

Bump to these thread! It will be so much better if those features mentioned by @Francois_Ifitwala and @wale added!! Especially for the deduction feature.

Visit Topic or reply to this email to respond

To stop receiving notifications for this particular topic, click here. To unsubscribe from these emails, change your user preferences


@rmehta I’ve added this as a github issue as discussed


Kind regards,


ya payroll management system is poor on erp next we must add at least the following basic feastures of a payroll
1, income tax must be calculated automatically based on rules like
if Mr. X basic salary is 5000
and the country law may be from 1500-3000 income tax will be basic salary20%-350
from 3000-5000 income tax will be basic salary
25%-550 and so on so the system must work like that
2, over time calculation also on this it must flexible to edit based on the country law
for hollyday ,weekly off, normal hour, at night and if other the system must automatically calculate from basic salary
3, the system deductions and earnings must be linked with there accounts …
4, the HR system must have a feature to link with attendance machines…


any update on this issue?


there must be some work around solution anyone with the hint


there are multiple alternative in defining the Salary Structure. You can have yearly changing parameters announced by the government like the minimum wage rate and income tax brackets or disability allowances. These can be defined via a nicely designed succession of statistical parameters and conditioned calculations.
Of course during implementation, there will be a need for programming approach to the hierarchy and relations of these calculations. Whether or not to include some calculated values in totals, how to respond to annual changes. There are possibilities to use employee parameters both custom and standard.
If you can present a specific hurdle you encountered, we will be more than happy to help.