{% extends 'base.html.twig' %}
{% block title %}Imputations | {{ parent() }}{% endblock %}
{% block body %}
<div class="breadcrumb">
<h1 class="mr-2">Imputations</h1>
<ul>
<li><a href="{{ path('default') }}" onclick="$('.loader').addClass('is-active');">Accueil</a></li>
{# <li><a href="{{ path('treasury_cash_register_show', {'id': treasury_cash_register.id}) }}" onclick="$('.loader').addClass('is-active');">Retour</a></li> #}
<li>Détails</li>
</ul>
</div>
<div class="separator-breadcrumb border-top"></div>
{% if accounting_student_registration_payment.isCanBePrint %}
<div class="row">
<div class="col-md-12 text-center mt-24">
<a href="{{ path('treasury_cash_register_shedul_payment_print', {'id': accounting_student_registration_payment.id}) }}" target="_blank" class="btn btn-dark"><i class="fa fa-print"></i> IMPRIMER</a>
<a href="{{ path('treasury_cash_register_show', {'id': treasury_cash_register.id}) }}" onclick="$('.loader').addClass('is-active');" class="btn btn-primary"><i class="fa fa-plus"></i> Nouveau Paiement</a>
</div>
</div>
{% else %}
<div class="card">
<div class="card-header text-center">
{{ accounting_student_registration_payment.code }} |
<b>{{ accounting_student_registration_payment.shedulAmount|number_format(0, ',', ' ') }} imputé sur {{ accounting_student_registration_payment.amount|number_format(0, ',', ' ') }} Reste à imputer : {{ (accounting_student_registration_payment.amount - accounting_student_registration_payment.shedulAmount)|number_format(0, ',', ' ') }}</b> |
{{ student_registration.name }} | {{ student_registration.classroom.label }} | Mle: {{ student_registration.student.code }}
</div>
<div class="card-body">
<div class="tab-pane fade active show" id="shedul" role="tabpanel" aria-labelledby="shedul-tab">
{{ include('treasury/treasury_cash_register/_shedul_table.html.twig') }}
</div>
</div>
<div class="card-footer">
<a href="{{ path('treasury_cash_register_show', {'id': treasury_cash_register.id}) }}" onclick="$('.loader').addClass('is-active');" class="btn btn-primary pull-right"><i class="fa fa-chevron-left"></i> Quitter</a>
</div>
</div>
{% endif %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
{# $(document).ready(function () {
$('#accounting_student_registration_payment_studentRegistration').change(function(){
id = $('#accounting_student_registration_payment_studentRegistration').val();
getStudentInfo(id);
}).trigger("change");
}) #}
</script>
{% endblock %}