From 9cc5e7245b35e423b60a5e88fa10f0b661800881 Mon Sep 17 00:00:00 2001 From: "watcha.h@almacom.co.th" Date: Mon, 11 May 2015 11:14:07 +0700 Subject: [PATCH] fix report labor cost staff --- netforce_clinic/models/report_labor_cost_staff.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/netforce_clinic/models/report_labor_cost_staff.py b/netforce_clinic/models/report_labor_cost_staff.py index dfd9f79..a764077 100644 --- a/netforce_clinic/models/report_labor_cost_staff.py +++ b/netforce_clinic/models/report_labor_cost_staff.py @@ -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