improve report

conv_bal
watcha.h@almacom.co.th 2015-06-12 14:22:00 +07:00
parent e86640ea42
commit e5467144d1
2 changed files with 7 additions and 0 deletions

View File

@ -99,7 +99,10 @@ class ReportCycleSetting(Model):
continue
key=(patient.id,dpt.id)
if not pts.get(key):
login=patient.w_uid.login
pts[key]={
'w_time': patient.w_time,
'w_uid': login,
'patient_name': patient.name,
'department_name': dpt.name,
'mon_cycle_id': None,

View File

@ -5,6 +5,8 @@
<thead class="scroll-header">
<th>#</th>
<th>Patient</th>
<th>Last Update</th>
<th>Update By</th>
{{#unless department_id}}
<th>Department</th>
{{/unless}}
@ -23,6 +25,8 @@
<td>
{{view "link" string=patient_name action="clinic_patient" action_options="mode=form" active_id=patient_id}}
</td>
<td>{{w_time}}</td>
<td>{{w_uid}}</td>
{{#unless ../department_id}}
<td>{{department_name}}</td>
{{/unless}}