fix report labor cost staff
parent
8a0c430fee
commit
9cc5e7245b
|
@ -73,8 +73,8 @@ class ReportLaborCostStaff(Model):
|
||||||
department_id=obj.department_id.id
|
department_id=obj.department_id.id
|
||||||
cycle_id=obj.cycle_id.id
|
cycle_id=obj.cycle_id.id
|
||||||
walkin=obj.walkin
|
walkin=obj.walkin
|
||||||
dom.append(['date','>=',date_from])
|
dom.append(['hd_case_id.date','>=',date_from]) #XXX
|
||||||
dom.append(['date','<=',date_to])
|
dom.append(['hd_case_id.date','<=',date_to]) #XXX
|
||||||
dom.append(['hd_case_id.state','in',['waiting_payment','paid']])
|
dom.append(['hd_case_id.state','in',['waiting_payment','paid']])
|
||||||
if branch_id:
|
if branch_id:
|
||||||
dom.append(['hd_case_id.branch_id','=',branch_id])
|
dom.append(['hd_case_id.branch_id','=',branch_id])
|
||||||
|
@ -83,7 +83,6 @@ class ReportLaborCostStaff(Model):
|
||||||
if cycle_id:
|
if cycle_id:
|
||||||
dom.append(['hd_case_id.cycle_id','=',cycle_id])
|
dom.append(['hd_case_id.cycle_id','=',cycle_id])
|
||||||
lines=[]
|
lines=[]
|
||||||
print('dom ', dom)
|
|
||||||
for sline in get_model("clinic.hd.case.staff").search_browse(dom):
|
for sline in get_model("clinic.hd.case.staff").search_browse(dom):
|
||||||
hdcase=sline.hd_case_id
|
hdcase=sline.hd_case_id
|
||||||
staff=sline.staff_id
|
staff=sline.staff_id
|
||||||
|
|
Loading…
Reference in New Issue