[IMP] small improvment in _calculate_basic method of hr.employee so it will consider today's contract days to total the basic of employee form all contracts
bzr revid: psi@tinyerp.co.in-20110322110353-ph0w969grj8ua6l3
This commit is contained in:
@@ -1277,7 +1277,7 @@ class hr_employee(osv.osv):
|
||||
cr.execute( 'SELECT SUM(wage) '\
|
||||
'FROM hr_contract '\
|
||||
'WHERE employee_id = %s '\
|
||||
'AND date_start < %s '\
|
||||
'AND date_start <= %s '\
|
||||
'AND (date_end > %s OR date_end is NULL)',
|
||||
(employee.id, current_date, current_date))
|
||||
result = dict(cr.dictfetchone())
|
||||
|
||||
Reference in New Issue
Block a user