fix report cycle item
parent
0ab9af7f3c
commit
d50f527a39
|
@ -111,6 +111,8 @@ class ReportCycleItem(Model):
|
||||||
'first_name': nurse.first_name or "",
|
'first_name': nurse.first_name or "",
|
||||||
})
|
})
|
||||||
for hdcase in citem.hd_cases:
|
for hdcase in citem.hd_cases:
|
||||||
|
if hdcase.state not in ('paid', 'waiting_payment'):
|
||||||
|
continue
|
||||||
patient=hdcase.patient_id
|
patient=hdcase.patient_id
|
||||||
vascular=patient.vascular_acc
|
vascular=patient.vascular_acc
|
||||||
if vascular:
|
if vascular:
|
||||||
|
@ -124,9 +126,6 @@ class ReportCycleItem(Model):
|
||||||
dpt=hdcase.department_id
|
dpt=hdcase.department_id
|
||||||
dlz_use=hdcase.dlz_use or 0
|
dlz_use=hdcase.dlz_use or 0
|
||||||
dlz_drop=False
|
dlz_drop=False
|
||||||
#if dlz_use==hdcase.dlz_max:
|
|
||||||
#dlz_use="%sทิ้ง"%dlz_use
|
|
||||||
#dlz_drop=True
|
|
||||||
for dlz_line in hdcase.dialyzers:
|
for dlz_line in hdcase.dialyzers:
|
||||||
dlz=dlz_line.dialyzer_id
|
dlz=dlz_line.dialyzer_id
|
||||||
if dlz.state in ('drop','expire'):
|
if dlz.state in ('drop','expire'):
|
||||||
|
@ -134,11 +133,6 @@ class ReportCycleItem(Model):
|
||||||
dlz_drop=True
|
dlz_drop=True
|
||||||
cancel=False
|
cancel=False
|
||||||
row_color=''
|
row_color=''
|
||||||
if hdcase.state not in ('paid', 'waiting_payment'):
|
|
||||||
continue
|
|
||||||
#if hdcase.state=='cancelled':
|
|
||||||
#cancel=True
|
|
||||||
#row_color='#b6b6b6'
|
|
||||||
lines.append({
|
lines.append({
|
||||||
'dlz_drop': dlz_drop,
|
'dlz_drop': dlz_drop,
|
||||||
'cancel': cancel,
|
'cancel': cancel,
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue