It begs the question, do companies consider holidays as paid days?

Currently, in Salary Slip, Total days in month are total no. of days in the month (e.g. 31), and not total no. of working days in a month. (e.g. 24 i.e total no of days - holidays)

In this case, the per day salary is calculated as:

Salary per day = Total Salary / Total days in month

Hence, if one considers holidays as paid days, then salary per day will be less than that if they are not. This has an impact on how much salary is reduced if someone takes a leave of type Leave Without Pay.

So, what is common in most cases? Holidays are paid days or are they not?

Thanks,

Anand.

–

You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

Just stumbled upon this post and I know its a very old post but still wanted to post my thoughts into it.

The calculation of the salary per day is only as per the above rule of Total Salary/ Total Days in the month but the tricky issue especially here in India, is to define how many leaves should be considered, as per the labor laws in India (AFAIK) every person is entitled for 1 day leave on 6 working days. Assuming 6 working days with weekly off on Sunday, we could consider the following cases:

One Day leave: This should always be considered as 1 days, irrespective of the clubbing of the weekly off. This means that a leave on Mo or Sa should be considered as 1 only.

Two Days leave:

Mo, Tu: Should be considered as 2 days leave

Sa, Mo: Again would be considered as 2 days leave (Su would be given as weekly off).

Three Days leave:

Sa, Mo, Tu: Consider as 4 days leave (Su should be taken as leave)

Mo, Tu, We: Consider as 4 days leave (Su should be taken as leave)

Tu, We, Th: Consider as 3 days leave (Su would be given as weekly OFF)

We, Th, Fr: Consider as 3 days leave (Su would be given as weekly OFF)

Th, Fr, Sa: Consider as 4 days leave (Su should be taken as leave)

Fr, Sa, Mo: Consider as 4 days leave (Su should be taken as leave)

Four Days Leave

Mo, Tu, We, Th: Consider as 5 days leave (Su should be taken as leave)

Tu, We, Th, Fr: I am confused since this person does not deserve the weekly OFF but still it would be considered as 4 days leave only.

We, Th, Fr, Sa: Consider as 5 days leave (Su should be taken as leave)

Five Days Leave:

All cases consider as 6 days leave.

Six Days leave:

All cases consider as 7 days leave.

Now the problem gets trickier if the leaves span across months since the weeks would be overlapping and this is where I guess that HR people always give salary after a week so your code must be considering the days before the month from earlier month in that week to analyse the days prior to the month and decide accordingly about the number of leave days.

On Friday, July 26, 2013 4:41:50 PM UTC+5:30, Anand Doshi wrote:

It begs the question, do companies consider holidays as paid days?

Currently, in Salary Slip, Total days in month are total no. of days in the month (e.g. 31), and not total no. of working days in a month. (e.g. 24 i.e total no of days - holidays)

In this case, the per day salary is calculated as:

Salary per day = Total Salary / Total days in month

Hence, if one considers holidays as paid days, then salary per day will be less than that if they are not. This has an impact on how much salary is reduced if someone takes a leave of type Leave Without Pay.

So, what is common in most cases? Holidays are paid days or are they not?

Thanks,

Anand.

–

You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

Dear Team. Would be looking forward for this functionality.

As of, we manually enter LWP and move on with salary fulfillment.

Regards, Mahesh

On Thu, Aug 21, 2014 at 11:20 PM, Addy <ad...@gmail.com> wrote:

Hi Anand,

Just stumbled upon this post and I know its a very old post but still wanted to post my thoughts into it.

The calculation of the salary per day is only as per the above rule of Total Salary/ Total Days in the month but the tricky issue especially here in India, is to define how many leaves should be considered, as per the labor laws in India (AFAIK) every person is entitled for 1 day leave on 6 working days. Assuming 6 working days with weekly off on Sunday, we could consider the following cases:

One Day leave: This should always be considered as 1 days, irrespective of the clubbing of the weekly off. This means that a leave on Mo or Sa should be considered as 1 only.

Two Days leave:

Mo, Tu: Should be considered as 2 days leave

Sa, Mo: Again would be considered as 2 days leave (Su would be given as weekly off).

Three Days leave:

Sa, Mo, Tu: Consider as 4 days leave (Su should be taken as leave)

Mo, Tu, We: Consider as 4 days leave (Su should be taken as leave)

Tu, We, Th: Consider as 3 days leave (Su would be given as weekly OFF)

We, Th, Fr: Consider as 3 days leave (Su would be given as weekly OFF)

Th, Fr, Sa: Consider as 4 days leave (Su should be taken as leave)

Fr, Sa, Mo: Consider as 4 days leave (Su should be taken as leave)

Four Days Leave

Mo, Tu, We, Th: Consider as 5 days leave (Su should be taken as leave)

Tu, We, Th, Fr: I am confused since this person does not deserve the weekly OFF but still it would be considered as 4 days leave only.

We, Th, Fr, Sa: Consider as 5 days leave (Su should be taken as leave)

Five Days Leave:

All cases consider as 6 days leave.

Six Days leave:

All cases consider as 7 days leave.

Now the problem gets trickier if the leaves span across months since the weeks would be overlapping and this is where I guess that HR people always give salary after a week so your code must be considering the days before the month from earlier month in that week to analyse the days prior to the month and decide accordingly about the number of leave days.

On Friday, July 26, 2013 4:41:50 PM UTC+5:30, Anand Doshi wrote:

It begs the question, do companies consider holidays as paid days?

Currently, in Salary Slip, Total days in month are total no. of days in the month (e.g. 31), and not total no. of working days in a month. (e.g. 24 i.e total no of days - holidays)

In this case, the per day salary is calculated as:

Salary per day = Total Salary / Total days in month

Hence, if one considers holidays as paid days, then salary per day will be less than that if they are not. This has an impact on how much salary is reduced if someone takes a leave of type Leave Without Pay.

So, what is common in most cases? Holidays are paid days or are they not?

Thanks,

Anand.

–

You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

Just stumbled upon this post and I know its a very old post but still wanted to post my thoughts into it.

The calculation of the salary per day is only as per the above rule of Total Salary/ Total Days in the month but the tricky issue especially here in India, is to define how many leaves should be considered, as per the labor laws in India (AFAIK) every person is entitled for 1 day leave on 6 working days. Assuming 6 working days with weekly off on Sunday, we could consider the following cases:

One Day leave: This should always be considered as 1 days, irrespective of the clubbing of the weekly off. This means that a leave on Mo or Sa should be considered as 1 only.

Two Days leave:

Mo, Tu: Should be considered as 2 days leave

Sa, Mo: Again would be considered as 2 days leave (Su would be given as weekly off).

Three Days leave:

Sa, Mo, Tu: Consider as 4 days leave (Su should be taken as leave)

Mo, Tu, We: Consider as 4 days leave (Su should be taken as leave)

Tu, We, Th: Consider as 3 days leave (Su would be given as weekly OFF)

We, Th, Fr: Consider as 3 days leave (Su would be given as weekly OFF)

Th, Fr, Sa: Consider as 4 days leave (Su should be taken as leave)

Fr, Sa, Mo: Consider as 4 days leave (Su should be taken as leave)

Four Days Leave

Mo, Tu, We, Th: Consider as 5 days leave (Su should be taken as leave)

Tu, We, Th, Fr: I am confused since this person does not deserve the weekly OFF but still it would be considered as 4 days leave only.

We, Th, Fr, Sa: Consider as 5 days leave (Su should be taken as leave)

Five Days Leave:

All cases consider as 6 days leave.

Six Days leave:

All cases consider as 7 days leave.

Now the problem gets trickier if the leaves span across months since the weeks would be overlapping and this is where I guess that HR people always give salary after a week so your code must be considering the days before the month from earlier month in that week to analyse the days prior to the month and decide accordingly about the number of leave days.

On Friday, July 26, 2013 4:41:50 PM UTC+5:30, Anand Doshi wrote:

It begs the question, do companies consider holidays as paid days?

Currently, in Salary Slip, Total days in month are total no. of days in the month (e.g. 31), and not total no. of working days in a month. (e.g. 24 i.e total no of days - holidays)

In this case, the per day salary is calculated as:

Salary per day = Total Salary / Total days in month

Hence, if one considers holidays as paid days, then salary per day will be less than that if they are not. This has an impact on how much salary is reduced if someone takes a leave of typeLeave Without Pay.

So, what is common in most cases? Holidays are paid days or are they not?

Well, they sure don't apply in my part of town : )

If I'm correct though, it appears the logic in the system Aditya outlined below is:

1. Any leave not exceeding 2 days is independent of weekly off day (in this case, Sunday)

2. Any leave of 3 days and above causes the weekly off day (Sunday) to be counted as leave unless there is at least one working day in-between them (by them, I mean leave days and weekly off)

Cheers!

Kind regards, Olawale

From: Anand Doshi

Sent: Friday, August 22, 2014 7:54 AM

To: er...@googlegroups.com

Reply To: er...@googlegroups.com

Subject: [erpnext-user-forum] [Discussion] Working Days in Salary Slip

Hi Aditya

Wow! So many complications for a leave!

Thanks for the detailed post.

@community: Do such rules apply anywhere else in the world?

Just stumbled upon this post and I know its a very old post but still wanted to post my thoughts into it.

The calculation of the salary per day is only as per the above rule of Total Salary/ Total Days in the month but the tricky issue especially here in India, is to define how many leaves should be considered, as per the labor laws in India (AFAIK) every person is entitled for 1 day leave on 6 working days. Assuming 6 working days with weekly off on Sunday, we could consider the following cases:

One Day leave: This should always be considered as 1 days, irrespective of the clubbing of the weekly off. This means that a leave on Mo or Sa should be considered as 1 only.

Two Days leave:

Mo, Tu: Should be considered as 2 days leave

Sa, Mo: Again would be considered as 2 days leave (Su would be given as weekly off).

Three Days leave:

Sa, Mo, Tu: Consider as 4 days leave (Su should be taken as leave)

Mo, Tu, We: Consider as 4 days leave (Su should be taken as leave)

Tu, We, Th: Consider as 3 days leave (Su would be given as weekly OFF)

We, Th, Fr: Consider as 3 days leave (Su would be given as weekly OFF)

Th, Fr, Sa: Consider as 4 days leave (Su should be taken as leave)

Fr, Sa, Mo: Consider as 4 days leave (Su should be taken as leave)

Four Days Leave

Mo, Tu, We, Th: Consider as 5 days leave (Su should be taken as leave)

Tu, We, Th, Fr: I am confused since this person does not deserve the weekly OFF but still it would be considered as 4 days leave only.

We, Th, Fr, Sa: Consider as 5 days leave (Su should be taken as leave)

Five Days Leave:

All cases consider as 6 days leave.

Six Days leave:

All cases consider as 7 days leave.

Now the problem gets trickier if the leaves span across months since the weeks would be overlapping and this is where I guess that HR people always give salary after a week so your code must be considering the days before the month from earlier month in that week to analyse the days prior to the month and decide accordingly about the number of leave days.

On Friday, July 26, 2013 4:41:50 PM UTC+5:30, Anand Doshi wrote:

It begs the question, do companies consider holidays as paid days?

Currently, in Salary Slip, Total days in month are total no. of days in the month (e.g. 31), and not total no. of working days in a month. (e.g. 24 i.e total no of days - holidays)

In this case, the per day salary is calculated as:

Salary per day = Total Salary / Total days in month

Hence, if one considers holidays as paid days, then salary per day will be less than that if they are not. This has an impact on how much salary is reduced if someone takes a leave of typeLeave Without Pay.

So, what is common in most cases? Holidays are paid days or are they not?

I'll respond you according to the laws on Panama: Article 54. The duration and payment of vacations shall be governed by the following rules: 1. Thirty daysfor every elevenmonths of continuouswork,arate of one dayfor every elevendays of theservice of hisemployer. 2. Payment ofone month's salarywhen compensationhas been agreedfor a month,andfour weeks anda third,where it has beenagreedbyweek.In these cases,if the salaryincludesbonuses, commissionsor othervariablessums,or the employeehas receivedsalary increase, the averageordinary wagesand extraordinaryaccrued duringthe past eleven months,or the lastbase salarywill be paid, whichever ismorefavorable to the worker. 3. In the caseofworkers paid bythe hour or daytotalof ordinaryandextraordinaryremunerationthe employeewould have receivedin the last elevenmonths of serviceby thetotalnumber of ordinarydays,or lesstime servedwill be dividedifisproportional holidays,andthis ratiois multiplied by thenumber of days ofannual leavedue to him.If thebase salaryearned duringthe last monthis more thanaverage,the holidaywill be paid asone. 4. For purposesof computing thetime servedentitlingvacation,the duration of theweekly rest, holidaysornational mourning, sick leavewithin the limitsindicated in Article200will be counted,the cases described intheArticle 208or other interruptionsspecifically authorized by theemployer. 5. Amountsto bereceived by the workerwillbesettled and paidthree days inadvance ofthe dateyou begin enjoyingthe annualbreak. 6. A worker whoseentitlementends beforethe fullrest periodreferred to in thisarticle shall bepaid in cashonproportionalentitledtoa rate ofone day forevery elevenworking daysvacation. 7. Fulfilledthe holiday periodthe employee is entitledtobe reinstatedin his post.

Hope this information works.

Regards!

El viernes, 26 de julio de 2013 06:11:50 UTC-5, Anand Doshi escribió:

It begs the question, do companies consider holidays as paid days?

Currently, in Salary Slip, Total days in month are total no. of days in the month (e.g. 31), and not total no. of working days in a month. (e.g. 24 i.e total no of days - holidays)

In this case, the per day salary is calculated as:

Salary per day = Total Salary / Total days in month

Hence, if one considers holidays as paid days, then salary per day will be less than that if they are not. This has an impact on how much salary is reduced if someone takes a leave of type Leave Without Pay.

So, what is common in most cases? Holidays are paid days or are they not?

Thanks,

Anand.

–

You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

Thanks for sharing. I am not sure how fast we can implement these :) You can add this as a comment to the original GitHub Issue.

On 22-Aug-2014, at 6:49 pm, Abdel Gadiel Martínez Lassonde <ab...@gmail.com> wrote:

Hi @community!

I'll respond you according to the laws on Panama: Article 54. The duration and payment of vacations shall be governed by the following rules: 1. Thirty daysfor every elevenmonths of continuouswork,arate of one dayfor every elevendays of theservice of hisemployer. 2. Payment ofone month's salarywhen compensationhas been agreedfor a month,andfour weeks anda third,where it has beenagreedbyweek.In these cases,if the salaryincludesbonuses, commissionsor othervariablessums,or the employeehas receivedsalary increase, the averageordinary wagesand extraordinaryaccrued duringthe past eleven months,or the lastbase salarywill be paid, whichever ismorefavorable to the worker. 3. In the caseofworkers paid bythe hour or daytotalof ordinaryandextraordinaryremunerationthe employeewould have receivedin the last elevenmonths of serviceby thetotalnumber of ordinarydays,or lesstime servedwill be dividedifisproportional holidays,andthis ratiois multiplied by thenumber of days ofannual leavedue to him.If thebase salaryearned duringthe last monthis more thanaverage,the holidaywill be paid asone. 4. For purposesof computing thetime servedentitlingvacation,the duration of theweekly rest, holidaysornational mourning, sick leavewithin the limitsindicated in Article200will be counted,the cases described intheArticle 208or other interruptionsspecifically authorized by theemployer. 5. Amountsto bereceived by the workerwillbesettled and paidthree days inadvance ofthe dateyou begin enjoyingthe annualbreak. 6. A worker whoseentitlementends beforethe fullrest periodreferred to in thisarticle shall bepaid in cashonproportionalentitledtoa rate ofone day forevery elevenworking daysvacation. 7. Fulfilledthe holiday periodthe employee is entitledtobe reinstatedin his post.

Hope this information works.

Regards!

El viernes, 26 de julio de 2013 06:11:50 UTC-5, Anand Doshi escribió:

It begs the question, do companies consider holidays as paid days?

Currently, in Salary Slip, Total days in month are total no. of days in the month (e.g. 31), and not total no. of working days in a month. (e.g. 24 i.e total no of days - holidays)

In this case, the per day salary is calculated as:

Salary per day = Total Salary / Total days in month

Hence, if one considers holidays as paid days, then salary per day will be less than that if they are not. This has an impact on how much salary is reduced if someone takes a leave of type Leave Without Pay.

So, what is common in most cases? Holidays are paid days or are they not?

Thanks,

Anand.

–

You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.