From e5467144d19d8143f878b050559806c39cc3e209 Mon Sep 17 00:00:00 2001 From: "watcha.h@almacom.co.th" Date: Fri, 12 Jun 2015 14:22:00 +0700 Subject: [PATCH] improve report --- netforce_clinic/models/report_cycle_setting.py | 3 +++ netforce_clinic/templates/report_cycle_setting.hbs | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/netforce_clinic/models/report_cycle_setting.py b/netforce_clinic/models/report_cycle_setting.py index f35239a..4c85f42 100644 --- a/netforce_clinic/models/report_cycle_setting.py +++ b/netforce_clinic/models/report_cycle_setting.py @@ -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, diff --git a/netforce_clinic/templates/report_cycle_setting.hbs b/netforce_clinic/templates/report_cycle_setting.hbs index b7b58ae..6f8b970 100644 --- a/netforce_clinic/templates/report_cycle_setting.hbs +++ b/netforce_clinic/templates/report_cycle_setting.hbs @@ -5,6 +5,8 @@ # Patient + Last Update + Update By {{#unless department_id}} Department {{/unless}} @@ -23,6 +25,8 @@ {{view "link" string=patient_name action="clinic_patient" action_options="mode=form" active_id=patient_id}} + {{w_time}} + {{w_uid}} {{#unless ../department_id}} {{department_name}} {{/unless}}