From 593ffd6248cdd58c8119a4171ecc9fe89d5fab4f Mon Sep 17 00:00:00 2001 From: "watcha.h@almacom.co.th" Date: Fri, 12 Jun 2015 10:43:38 +0700 Subject: [PATCH] xx --- netforce_clinic/models/report_cycle_setting.py | 2 ++ 1 file changed, 2 insertions(+) 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]={