mirror of
https://bitbucket.org/presik/trytonpsk-staff_payroll_co.git
synced 2023-12-14 06:42:56 +01:00
minor fix
This commit is contained in:
parent
c888f447d1
commit
a34f66a5d6
|
@ -207,6 +207,7 @@ class Payroll(metaclass=PoolMeta):
|
|||
self.description = self.period.description
|
||||
|
||||
def get_worked_days_effective(self, name=None):
|
||||
res = 0
|
||||
if self.lines:
|
||||
days = []
|
||||
unit = 1
|
||||
|
@ -215,7 +216,8 @@ class Payroll(metaclass=PoolMeta):
|
|||
days.append(l.quantity)
|
||||
if l.wage_type.uom.id == Id('product', 'uom_hour').pyson():
|
||||
unit = 8
|
||||
return sum(days)/unit
|
||||
res = sum(days)/unit
|
||||
return res
|
||||
|
||||
def adjust_partial_sunday(self, quantity):
|
||||
# Factor = 8 hour sunday / 6 days (monday-saturday)
|
||||
|
|
Loading…
Reference in a new issue