fix report labor cost staff

conv_bal
watcha.h@almacom.co.th 2015-05-11 11:14:07 +07:00
parent 8a0c430fee
commit 9cc5e7245b
1 changed files with 2 additions and 3 deletions

View File

@ -73,8 +73,8 @@ class ReportLaborCostStaff(Model):
department_id=obj.department_id.id
cycle_id=obj.cycle_id.id
walkin=obj.walkin
dom.append(['date','>=',date_from])
dom.append(['date','<=',date_to])
dom.append(['hd_case_id.date','>=',date_from]) #XXX
dom.append(['hd_case_id.date','<=',date_to]) #XXX
dom.append(['hd_case_id.state','in',['waiting_payment','paid']])
if branch_id:
dom.append(['hd_case_id.branch_id','=',branch_id])
@ -83,7 +83,6 @@ class ReportLaborCostStaff(Model):
if cycle_id:
dom.append(['hd_case_id.cycle_id','=',cycle_id])
lines=[]
print('dom ', dom)
for sline in get_model("clinic.hd.case.staff").search_browse(dom):
hdcase=sline.hd_case_id
staff=sline.staff_id