Community mailing list archives

Re: Partial Payroll Processing in V7

- 01/25/2015 00:08:49
Hello Christophe Combelles,

Thanks for the answer, i think it will solve the purpose, when salary is calculated based on hours worked. But what would be the solution if it is calculated on basis of month ? 


On Sun, Jan 25, 2015 at 12:03 AM, Christophe Combelles <> wrote:

I did that way on v7 :
I assume that there are 150 hours in a month, and the employee has worked 75 hours.
On the relevant salary rules (such as GROSS salary, or others if necessary), define a python computation based on a variable of the payslip :

result = 1457.52 # or your own computation
if worked_days.HOR and worked_days.HOR.number_of_hours:
    result = result/150.0 * worked_days.HOR.number_of_hours

Then, on the generated (but not validated) payslip, just add a line in the worked days tab :

    Description : what you want
    Code : HOR
    Number of hours : 75.0  # the amount you want
    Contract : the corresponding contract.


Christophe Combelles
tel +33 185 080 967
mob +33 608 955 845
<img src="" alt="" height="30" width="100" border="0">

Le 24/01/2015 09:33, Bharat Devnani a écrit :
<blockquote cite="" type="cite">
Dear Community Members,

I came to one test case of Partial Payroll Processing, if some one is hired in Middle of the month say 10th of the month, So how one can process the partial salary ?

At the moment, the system process salary for whole month or doesn't calculate the Worked Days and Inputs.

Any help is appreciated.

Thanks & Regards,

Post to:

Post to: