[FIX] report hdcase summary not show dispose patient

cause is timestamp
fix1
SPP 2018-06-01 16:12:42 +07:00
parent 4b8cf286ed
commit 9de345409c
3 changed files with 6 additions and 13 deletions

View File

@ -70,18 +70,9 @@ class ReportDiscontinuePatient(Model):
department_id=obj.department_id.id
# new patient of this month
dom=[]
dom.append(['date','>=',time_start])
dom.append(['date','<=',time_stop])
dom.append(['date','>=',"%s 00:00:00"%(time_start)])
dom.append(['date','<=',"%s 23:59:59"%(time_stop)])
dom.append(['type','=','out'])
#dom.append(['resign_date','>=',time_start])
#dom.append(['resign_date','<=',time_stop])
#dom.append(['walkin','=',"no"])
#dom.append(['dispose','=',True])
#if branch_id:
#dom.append(['branch_id','=',branch_id])
#if department_id:
#dom.append(['department_id','=',department_id])
print("dom ", dom)
records=get_model('clinic.patient.move').search_browse(dom)
lines=[]
no=1

View File

@ -113,6 +113,8 @@ class ReportHDCaseDetail(Model):
report_type=obj.report_type or 'topic1'
hdcase_type=obj.hdcase_type or 'completed'
patient_type_id=obj.patient_type_id.id
time_start="%s 00:00:00"%(time_start)
time_stop="%s 23:59:59"%(time_stop)
prev_year=year
next_year=year
prev_month=crr_month-1

View File

@ -69,8 +69,8 @@ class ReportRecentPatient(Model):
department_id=obj.department_id.id
# new patient of this month
dom=[]
dom.append(['date','>=',time_start])
dom.append(['date','<=',time_stop])
dom.append(['date','>=',"%s 00:00:00"%(time_start)])
dom.append(['date','<=',"%s 23:59:59"%(time_stop)])
dom.append(['type','=',"in"])
records=get_model('clinic.patient.move').search_browse(dom)
lines=[]