Project

General

Profile

« Previous | Next » 

Revision 9a7addab

Added by Mikaël Ates over 9 years ago

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

View differences:

calebasse/facturation/templates/facturation/detail.html
411 411
            </p>
412 412
        <div id="dossiers-concernes">
413 413
        {% for patient, detail in patients_stats %}
414
            {% if patient.pause or "acts_paused" in detail.keys or patient in patients_missing_policy %}
415
             <div class="frame dossier facturable">
416
            {% else %}
417
            <div class="frame dossier">
418
            {% endif %}
414
            <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 %}">
419 415
                <h3><span class="patient_pk">({{ patient.pk }})</span><a href="../../dossiers/{{ patient.pk }}/view" target="_blank">
420 416
                {% if patient.paper_id %}{{ patient.paper_id }} {% endif %} <span class="lastname">{{ patient.last_name }}</span> {{ patient.first_name }}</a></h3>
421 417
                <div class="info">
......
488 484
            </p>
489 485
        <div id="dossiers-concernes">
490 486
        {% for patient, detail in patients_stats %}
491
            {% if patient.pause or "acts_paused" in detail.keys or patient in patients_missing_policy or patient in patients_missing_notif %}
492
             <div class="frame dossier facturable">
493
            {% else %}
494
            <div class="frame dossier">
495
            {% endif %}
487
            <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 %}">
496 488
                <h3><span class="patient_pk">({{ patient.pk }})</span><a href="../../dossiers/{{ patient.pk }}/view" target="_blank">
497 489
                {% if patient.paper_id %}{{ patient.paper_id }} {% endif %} <span class="lastname">{{ patient.last_name }}</span> {{ patient.first_name }}</a></h3>
498 490
                <div class="info">
calebasse/static/js/calebasse.facturation.js
78 78
        } else if (val == 'missing_policy') {
79 79
            $('#dossiers-concernes div.dossier').show();
80 80
            $('#dossiers-concernes div.dossier:not(.missing_policy)').hide();
81
        } else if (val == 'missing_notif') {
82
            $('#dossiers-concernes div.dossier').show();
83
            $('#dossiers-concernes div.dossier:not(.missing_notif)').hide();
81 84
        } else if (val == 'missing_birthdate') {
82 85
            $('#dossiers-concernes div.dossier').show();
83 86
            $('#dossiers-concernes div.dossier:not(.missing_birthdate)').hide();

Also available in: Unified diff