ERPNext Conference 2019* ERPNext.com Blog

Can i access present days and absent days from attendance module to salary component

erpnext

#1

I want to access total present days and absent days of a month which is added as attendance in salary component to calculate salary. Is it possible in ERPNext ?


#2

Hi,

Can you explain your query in detail? What do you mean by “attendance in salary component”?

Regards,
Reema


#3

@Reema_Mehta I want to upload attendance for one month in bulk manner. So those absent days should be affected in salary slips. I came to know that attendance will not affect in salary slip (as leave without pay). So i am trying to calculate Leave without Pay days with Salary Component.


#4

@Reema_Mehta Leave should be imported because only leave will affect salary slips. Absent days in attendance will not.

So if a company has 200+ factory workers and most of them is not able to use a web portal, and the HR wants to provide salary slip for each and everyone.
See in this case it will be more difficult if HR creating each and everyone’s salary slip separately.
I agree with that is we can use Payroll Entry for creating salary slips , but to add “Leave without Pay” days HR has to go inside of every salary slip, edit it and submit it. It is not practical when you have many this kind of workers they are not able to apply a leave application through ERPNext portal.


#5

Hi,

Yes, currently attendance is not taking absent days as LWP but ideally it should. What you can do is create a leave type and check “Is LWP”, then any employee taking that leave will be automatically be marked LWP and will be calculated in salary slip as well.

Regards,
Reema


#6

@Reema_Mehta will it work when we upload attendance in bulk manner for one month ??


#7

Hi,

Yes, it will work when you upload bulk attendance.

Regards,
Reema


#8

@Reema_Mehta It is not happening. Showing error as " No leave record found for employee EIN0191 for 2019-08-07 ". So Leave application should be processed by HR first isn’t it ?


#9

Hi,

Yes you will have to create that leave application first and then upload attendance. It will work then.

Regards,
Reema


#10

@Reema_Mehta Can we create leave application in bulk for all users ?


#11

Hi,

Yes you can try via data import.

Regards,
Reema