minor fix

This commit is contained in:
Wilson Gomez 2023-03-27 11:02:14 -05:00
parent 042a4a1452
commit 4245c6fd64
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ class Payroll(metaclass=PoolMeta):
self.contract = contract
contract_end_date = None
if contract:
if not contract.end_date:
if not contract.finished_date:
end_date = period_end
if period_start >= contract.start_date: