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
ebe7367e02
commit
6a1841449b
|
@ -475,8 +475,9 @@ class Payroll(metaclass=PoolMeta):
|
|||
unit_value = wage.compute_unit_price(salary_args)
|
||||
res = self.get_line(wage, qty_pay, unit_value)
|
||||
lines = PayrollLine.create([res])
|
||||
event.line_payroll = lines[0]
|
||||
event.save()
|
||||
if lines:
|
||||
event.line_payroll = lines[0]
|
||||
event.save()
|
||||
if event.category.wage_type_discount and event.quantity_discount:
|
||||
id_wt_event = event.category.wage_type_discount.id
|
||||
if id_wt_event not in discounts.keys():
|
||||
|
|
Loading…
Reference in a new issue