Fix Holidays on the boundary between two pay periods by counting the whole leave in the first pay period.

This commit is contained in:
Jared Kipe
2018-05-10 12:29:09 -07:00
parent e12ec1290a
commit c436bec554

View File

@@ -42,7 +42,7 @@ class HrPayslip(models.Model):
('employee_id', '=', employee_id), ('employee_id', '=', employee_id),
('state', '=', 'validate'), ('state', '=', 'validate'),
('date_from', '>=', date_from), ('date_from', '>=', date_from),
('date_to', '<=', date_to), ('date_from', '<=', date_to),
('payslip_status', '=', False), ('payslip_status', '=', False),
('type', '=', 'remove'), ('type', '=', 'remove'),
] ]