report_acc_hdcase_summary
watcha.h 2016-12-14 18:36:31 +07:00
parent 67f5bfa29d
commit 7686215f9b
2 changed files with 0 additions and 4 deletions

View File

@ -103,9 +103,7 @@ class ReportMedicalDetail(Model):
shop_dom.append(['shop_id.branch_id','=',branch_id])
if department_id:
dom.append(['hd_case_id.department_id','=',department_id])
dom.append(['hd_case_id.patient_id.department_id','=',department_id])
shop_dom.append(['shop_id.department_id','=',department_id])
shop_dom.append(['shop_id.patient_id.department_id','=',department_id])
st=get_model("clinic.setting").browse(1)
ct_ids=[]
for categ in st.product_categ_view:

View File

@ -87,7 +87,6 @@ class ReportMedicalSummary(Model):
['date','>=',time_start],
['date','<=',time_stop],
['department_id','=',department_id],
['patient_id.department_id','=',department_id],
['branch_id','=',branch_id],
]
dom.append(['type','=','stock'])
@ -123,7 +122,6 @@ class ReportMedicalSummary(Model):
dom.append(['branch_id','=',branch_id])
if department_id:
dom.append(['department_id','=',department_id])
dom.append(['patient_id.department_id','=',department_id])
if report_type=='completed':
dom.append(["state","in",["waiting_payment","paid"]])
else: