Fix filter and display of specific patient records in not cmpp services (fixes #6282 #3137)

This commit is contained in:
Mikaël Ates 2015-01-12 15:55:30 +01:00
parent b2f07b821c
commit 9a7addab24
2 changed files with 5 additions and 10 deletions

View File

@ -411,11 +411,7 @@
</p>
<div id="dossiers-concernes">
{% for patient, detail in patients_stats %}
{% if patient.pause or "acts_paused" in detail.keys or patient in patients_missing_policy %}
<div class="frame dossier facturable">
{% else %}
<div class="frame dossier">
{% endif %}
<div class="frame dossier{% if patient.pause%} not_facturable pause{% endif %}{% if "acts_paused" in detail.keys %} not_facturable acts_paused{% endif %}{% if patient in patients_missing_policy %} not_facturable missing_policy{% endif %}">
<h3><span class="patient_pk">({{ patient.pk }})</span><a href="../../dossiers/{{ patient.pk }}/view" target="_blank">
{% if patient.paper_id %}{{ patient.paper_id }} {% endif %} <span class="lastname">{{ patient.last_name }}</span> {{ patient.first_name }}</a></h3>
<div class="info">
@ -488,11 +484,7 @@
</p>
<div id="dossiers-concernes">
{% 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 %}
<div class="frame dossier facturable">
{% else %}
<div class="frame dossier">
{% endif %}
<div class="frame dossier{% if patient.pause%} not_facturable pause{% endif %}{% if "acts_paused" in detail.keys %} not_facturable acts_paused{% endif %}{% if patient in patients_missing_policy %} not_facturable missing_policy{% endif %}{% if patient in patients_missing_notif %} not_facturable missing_notif{% endif %}">
<h3><span class="patient_pk">({{ patient.pk }})</span><a href="../../dossiers/{{ patient.pk }}/view" target="_blank">
{% if patient.paper_id %}{{ patient.paper_id }} {% endif %} <span class="lastname">{{ patient.last_name }}</span> {{ patient.first_name }}</a></h3>
<div class="info">

View File

@ -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();