Project

General

Profile

« Previous | Next » 

Revision b4a78ef4

Added by Mikaël Ates about 13 years ago

facturation: activate validation button and display details of validated invoicing.

View differences:

calebasse/facturation/templates/facturation/detail.html
<a href="..">Retourner à la liste</a>
{% if service_name == "CMPP" %}
{% if invoicing.status == "open" %}<button id="close"">Clôre cette facturation</button>{% endif %}
{% if invoicing.status == "closed" %}<button id="valider-btn"">Valider cette facturation</button>{% endif %}
{% if invoicing.status == "closed" %}<button id="validate"">Valider cette facturation</button>{% endif %}
{% if invoicing.status == "validated" %}
<button id="teletrans-btn" style="display: none;">Télétransmission à l'assurance maladie</button>
<button id="expcompt-btn" style="display: none;">Export comptabilité</button>
{% endif %}
{% else %}
{% if invoicing.status == "closed" %}<button id="valider-btn" style="display: none;">Valider ce décompte</button>{% endif %}
{% if invoicing.status == "closed" %}<button id="validate" style="display: none;">Valider ce décompte</button>{% endif %}
{% if invoicing.status == "validated" %}<button id="print-btn" style="display: none;">Imprimer</button>{% endif %}
{% endif %}
{% endblock %}
......
</ul>
{% endif %}
<h3>Résumé</h3>
{% if service_name == "CMPP" %}
{% if invoicing.status == "open" or invoicing.status == "closed" %}
<ul>
{% if service_name == "CMPP" %}
{% if invoicing.status == "open" or invoicing.status == "closed" %}
<ul>
{% if len_acts_invoiced_hors_pause %}
<li>Actes facturables hors dossiers en pause: {{ len_acts_invoiced_hors_pause }}
<ul>
......
{% else %}
<li>Pas d'actes facturables mais non pris en charge.</li>
{% endif %}
</ul>
</ul>
{% else %}
<ul>
{% if len_acts_invoiced %}
<li>Actes facturés: {{ len_acts_invoiced }}
<ul>
<li>Dossiers concernés : {{ len_patient_invoiced }}</li>
<li>Nombre de factures : {{ len_invoices }}</li>
</ul>
</li>
{% else %}
<li>Pas d'actes facturés pour cette facturation.</li>
{% endif %}
{% endif %}
</ul>
{% endif %}
{% endif %}
</div>
{% endblock %}
......
<input type="hidden" name="Close" value="1">
</form>
</div>
<div id="validate-dialog" title="Validation de la facturation">
<div id="validate-dialog-content">
</div>
<form method="post" action="validate/">
{% csrf_token %}
<input type="hidden" name="Valider" value="1">
</form>
</div>
{% endblock %}
{% block page-end %}
......
}
);
});
$('#validate-dialog').dialog({
autoOpen: false,
modal: true,
buttons: {
"Valider": function () { $('#validate-dialog form').submit(); },
"Annuler": function () { $(this).dialog("validate"); },
},
});
$('#validate').click(function () {
$('#close-dialog-content').load('validate/',
function () {
$('#validate-dialog').dialog('open');
}
);
});
</script>
{% endblock %}

Also available in: Unified diff