diff --git a/netforce_clinic/models/report_cycle_setting.py b/netforce_clinic/models/report_cycle_setting.py index b9e1e99..5dd0c52 100644 --- a/netforce_clinic/models/report_cycle_setting.py +++ b/netforce_clinic/models/report_cycle_setting.py @@ -95,6 +95,8 @@ class ReportCycleSetting(Model): continue if branch_id and branch_id!=branch.id: continue + if patient.resign_date: + continue key=(patient.id,dpt.id) if not pts.get(key): pts[key]={