Project

General

Profile

« Previous | Next » 

Revision 20d1be4c

Added by Mikaël Ates almost 12 years ago

facturation: display more details on invoicing details page.

View differences:

calebasse/facturation/templates/facturation/detail.html
157 157
                  <li>Pas d'actes décomptables en pause facturation.</li>
158 158
                {% endif %}
159 159

  
160
                {% if patients_missing_policy|length %}
161
                  <li>Dossiers avec information de sécurité sociale manquante : {{ patients_missing_policy|length }}
162
                  </li>
163
                {% endif %}
164

  
160 165
            </ul>
161 166
            {% else %}
162 167
            <ul>
......
214 219
                  <li>Pas d'actes décomptables en pause facturation.</li>
215 220
                {% endif %}
216 221

  
222
                {% if patients_missing_policy|length %}
223
                  <li>Dossiers avec information de sécurité sociale manquante : {{ patients_missing_policy|length }}
224
                  </li>
225
                {% endif %}
226

  
217 227
            </ul>
218 228
            {% else %}
219 229
            <ul>
......
350 360
        <h3>Dossiers concernés</h3>
351 361
        {% if invoicing.status == "closed" %}
352 362
            <p id="filtre-dossiers">
353
             <input type="checkbox" id="hide-dossiers-cb"><label for="hide-dossiers-cb">N'afficher que les dossiers en pause facturation ou avec un acte en pause.</label></input>
363
             <input type="checkbox" id="hide-dossiers-cb"><label for="hide-dossiers-cb">N'afficher que les dossiers en pause facturation, avec un acte en pause ou avec une information de sécurité sociale manquante.</label></input>
354 364
            </p>
355 365
        <div id="dossiers-concernes">
356 366
        {% for patient, detail in patients_stats %}
357
            {% if patient.pause or "acts_paused" in detail.keys %}
367
            {% if patient.pause or "acts_paused" in detail.keys or patient in patients_missing_policy %}
358 368
             <div class="frame dossier facturable">
359 369
            {% else %}
360 370
            <div class="frame dossier">
361 371
            {% endif %}
362
                <h3><a href="../../dossiers/{{ patient.pk }}/view">
372
                <h3><a href="../../dossiers/{{ patient.pk }}/view" target="_blank">
363 373
                {% if patient.paper_id %}{{ patient.paper_id }} {% endif %}({{ patient.pk }}) {{ patient.first_name }} <span class="lastname">{{ patient.last_name }}</span></a></h3>
364 374
                <div class="info">
365 375
                </div>
366 376
                {% if patient.pause %}<p id="pause-fac"><span class="hi-fact">Le dossier patient est en pause facturation.</span></p>{% endif %}
367 377
                {% if "acts_paused" in detail.keys %}<p id="pause-fac"><span class="hi-fact">Le dossier présente des actes facturables en pause facturation.</span></p>{% endif %}
378
                {% if patient in patients_missing_policy %}<p id="pause-fac"><span class="hi-fact">Le dossier présente une information de sécurité sociale manquante.</span></p>{% endif %}
368 379
                <ul>
369 380
                {% for key, value in detail.items %}
370 381
                  {% if key == "accepted" %}
......
394 405
        <div id="dossiers-concernes">
395 406
        {% for patient, detail in patients_stats %}
396 407
            <div class="frame dossier" id="to-hide">
397
                <h3><a href="../../dossiers/{{ patient.pk }}/view">
408
                <h3><a href="../../dossiers/{{ patient.pk }}/view" target="_blank">
398 409
                {% if patient.paper_id %}{{ patient.paper_id }} {% endif %}({{ patient.pk }}) {{ patient.first_name }} <span class="lastname">{{ patient.last_name }}</span></a></h3>
399 410
                <div class="info">
400 411
                </div>
......
423 434
        <h3>Dossiers concernés</h3>
424 435
        {% if invoicing.status == "closed" %}
425 436
            <p id="filtre-dossiers">
426
             <input type="checkbox" id="hide-dossiers-cb"><label for="hide-dossiers-cb">N'afficher que les dossiers en pause facturation ou avec un acte en pause.</label></input>
437
             <input type="checkbox" id="hide-dossiers-cb"><label for="hide-dossiers-cb">N'afficher que les dossiers avec une notification manquante, en pause facturation, avec un acte en pause ou avec une information de sécurité sociale manquante.</label></input>
427 438
            </p>
428 439
        <div id="dossiers-concernes">
429 440
        {% for patient, detail in patients_stats %}
430
            {% if patient.pause or "acts_paused" in detail.keys %}
441
            {% if patient.pause or "acts_paused" in detail.keys or patient in patients_missing_policy or patient in patients_missing_notif %}
431 442
             <div class="frame dossier facturable">
432 443
            {% else %}
433 444
            <div class="frame dossier">
434 445
            {% endif %}
435
                <h3><a href="../../dossiers/{{ patient.pk }}/view">
446
                <h3><a href="../../dossiers/{{ patient.pk }}/view" target="_blank">
436 447
                {% if patient.paper_id %}{{ patient.paper_id }} {% endif %}({{ patient.pk }}) {{ patient.first_name }} <span class="lastname">{{ patient.last_name }}</span></a></h3>
437 448
                <div class="info">
438 449
                </div>
439 450
                {% if patient.pause %}<p id="pause-fac"><span class="hi-fact">Le dossier patient est en pause facturation.</span></p>{% endif %}
440 451
                {% if "acts_paused" in detail.keys %}<p id="pause-fac"><span class="hi-fact">Le dossier présente des actes facturables en pause facturation.</span></p>{% endif %}
452
                {% if patient in patients_missing_policy %}<p id="pause-fac"><span class="hi-fact">Le dossier présente une information de sécurité sociale manquante.</span></p>{% endif %}
453
                {% if patient in patients_missing_notif %}<p id="pause-fac"><span class="hi-fact">Le dossier n'a pas de notification couvrant tous les actes.</span></p>{% endif %}
441 454
                <ul>
442 455
                {% for key, value in detail.items %}
443 456
                  {% if key == "accepted" %}
......
476 489
        <div id="dossiers-concernes">
477 490
        {% for patient, detail in patients_stats %}
478 491
            <div class="frame dossier" id="to-hide">
479
                <h3><a href="../../dossiers/{{ patient.pk }}/view">
492
                <h3><a href="../../dossiers/{{ patient.pk }}/view" target="_blank">
480 493
                {% if patient.paper_id %}{{ patient.paper_id }} {% endif %}({{ patient.pk }}) {{ patient.first_name }} <span class="lastname">{{ patient.last_name }}</span></a></h3>
481 494
                <div class="info">
482 495
                </div>

Also available in: Unified diff