Commit 89dfeeda authored by Crisitian Davico's avatar Crisitian Davico
Browse files

Update _compute_antique_recognized to contemplate contracts with date_start...

Update _compute_antique_recognized to contemplate contracts with date_start and no date_end as well as contracts with both dates.
parent 5bac3504
......@@ -346,7 +346,10 @@ class HRPayslip(models.Model):
# Check if contract.date_end is missing for a non-pending contract
if (not contract.date_end and contract.state in ['close', 'cancel']):
continue
antique_recognized = _compute_antique_from_dates(
contract_date_start, contract_date_end, days=True
)
break
if not (contract_date_end and contract_date_start):
continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment