templates/billing/sepa.html.twig line 1

Open in your IDE?
  1. <div class="modal" role="dialog" id="sepa">
  2.     <div class="modal-dialog" role="document">
  3.         <div class="modal-content">
  4.             <div class="modal-header">
  5.                 <h5 class="modal-title">SEPA POUR {% if company is defined and company %}{{ company.name }}{% endif %}</h5>
  6.                 <div class="liste-mass">
  7.                 </div>
  8.                 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  9.                     <span aria-hidden="true">&times;</span>
  10.                 </button>
  11.             </div>
  12.             <div class="modal-body">
  13.                 <form name="form-sepa" method="POST">
  14.                     <div>
  15.                         Mode de règlement
  16.                         <select name="payment-method" class="form-control" readonly="readonly">
  17.                             <option value="sepa" selected>SEPA</option>
  18.                         </select>
  19.                     </div>
  20.                     <div>
  21.                         Date de règlement
  22.                         <input id="payment-date" type="text" class="form-control flatpicker" name="date" value="{{ "now"|date("d-m-Y") }}"/>
  23.                     </div>
  24.                     <div>
  25.                         Réference de règlement
  26.                         <input type="text" class="form-control" name="reference" value="{% if company is defined and company %}{{ "now"|date("d-m-Y") }}_{{ company }}_PREL{% endif %}"/>
  27.                     </div>
  28.                     <table class="table table-hover" id="sample-table-1">
  29.                         <thead>
  30.                         <tr>
  31.                             <th>Numéro facture</th>
  32.                             <th>Société</th>
  33.                             <th>Date</th>
  34.                             <th>Nom du client</th>
  35.                             <th>Solde</th>
  36.                             <th>Montant réglement</th>
  37.                         </tr>
  38.                         </thead>
  39.                         <tbody>
  40.                         {% for billing in billingsSEPA  %}
  41.                             {% if billing.solde and billing.solde > 0 %}
  42.                                 {% if billing.client and billing.client.billingInfos and billing.client.billingInfos.payMode == 'sepa' %}
  43.                                 <tr>
  44.                                     <td>{{ billing.code }}</td>
  45.                                     <td>{{ billing.company }}</td>
  46.                                     <td>{{ billing.dateBilling|date('d/m/Y') }}</td>
  47.                                     <td>
  48.                                         {% if billing.client %}
  49.                                             {{ billing.client.firstname }} {{ billing.client.lastname }}
  50.                                         {% endif %}
  51.                                     </td>
  52.                                     <td> {{ billing.solde }}</td>
  53.                                     <td>
  54.                                         <input type="text" name="encaissement[{{ billing.id }}]" value="{{ billing.solde }}">
  55.                                     </td>
  56.                                 </tr>
  57.                                 {% endif %}
  58.                             {% endif %}
  59.                         {% endfor %}
  60.                         </tbody>
  61.                     </table>
  62.                     <div class="text-center">
  63.                         <input type="hidden" name="company" value="{% if company is defined and company %}{{ company.id }}{% endif %}">
  64.                         <button type="submit" class="btn btn-primary">Fichier SEPA</button>
  65.                         <button type="button" class="btn btn-secondary" data-dismiss="modal">Fermer</button>
  66.                     </div>
  67.                 </form>
  68.             </div>
  69.         </div>
  70.     </div>
  71. </div>