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}}