From 9a7addab24538360209149743faca3a4c749d211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Ates?= Date: Mon, 12 Jan 2015 15:55:30 +0100 Subject: [PATCH] Fix filter and display of specific patient records in not cmpp services (fixes #6282 #3137) --- .../facturation/templates/facturation/detail.html | 12 ++---------- calebasse/static/js/calebasse.facturation.js | 3 +++ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/calebasse/facturation/templates/facturation/detail.html b/calebasse/facturation/templates/facturation/detail.html index 6bdebc3a..cc8a7802 100644 --- a/calebasse/facturation/templates/facturation/detail.html +++ b/calebasse/facturation/templates/facturation/detail.html @@ -411,11 +411,7 @@

{% for patient, detail in patients_stats %} - {% if patient.pause or "acts_paused" in detail.keys or patient in patients_missing_policy %} -
- {% else %} -
- {% endif %} +

({{ patient.pk }}) {% if patient.paper_id %}{{ patient.paper_id }} {% endif %} {{ patient.last_name }} {{ patient.first_name }}

@@ -488,11 +484,7 @@

{% for patient, detail in patients_stats %} - {% if patient.pause or "acts_paused" in detail.keys or patient in patients_missing_policy or patient in patients_missing_notif %} -
- {% else %} -
- {% endif %} +

({{ patient.pk }}) {% if patient.paper_id %}{{ patient.paper_id }} {% endif %} {{ patient.last_name }} {{ patient.first_name }}

diff --git a/calebasse/static/js/calebasse.facturation.js b/calebasse/static/js/calebasse.facturation.js index 46d0c420..569a0105 100644 --- a/calebasse/static/js/calebasse.facturation.js +++ b/calebasse/static/js/calebasse.facturation.js @@ -78,6 +78,9 @@ function rebill_dialog(url, invoice_id) { } else if (val == 'missing_policy') { $('#dossiers-concernes div.dossier').show(); $('#dossiers-concernes div.dossier:not(.missing_policy)').hide(); + } else if (val == 'missing_notif') { + $('#dossiers-concernes div.dossier').show(); + $('#dossiers-concernes div.dossier:not(.missing_notif)').hide(); } else if (val == 'missing_birthdate') { $('#dossiers-concernes div.dossier').show(); $('#dossiers-concernes div.dossier:not(.missing_birthdate)').hide();