templates/company/blocks/_billing_address.html.twig line 1

Open in your IDE?
  1. <div class="row">
  2.     <div class="col">
  3.         <h2>Adresse de facturation</h2>
  4.     </div>
  5.     {% if company.billingAddress is null and company.locked == 0 %}
  6.         <div class="pr-3">
  7.             <a href="{{ path('billing_address_new', {'id_company': company.id}) }}" class="btn btn-sm btn-secondary">
  8.                 <i class="fa fa-plus"></i> Ajouter une adresse de facturation
  9.             </a>
  10.         </div>
  11.     {% endif %}
  12. </div>
  13. {% if company.billingAddress is null %}
  14.     <div class="alert alert-secondary" role="alert">
  15.         Vous n'avez pas encore défini d'adresse de facturation
  16.     </div>            
  17. {% else %}
  18.     <div class="card card-address mb-4">
  19.         <div class="card-header">
  20.             <div class="row">
  21.                 <div class="col">
  22.                     <h5 class="m-0 p-0">
  23.                         {{ company.billingAddress.name }}
  24.                     </h5>
  25.                 </div>
  26.                 <div class="row">
  27.                     <div class="col inline-inside">
  28.                         {% if company.billingAddress is null %}
  29.                             <a href="{{ path('billing_address_new', {'id_company': company.id}) }}">
  30.                                 <i class="far fa-plus-square"></i>
  31.                                 <span class="sr-only">
  32.                                     Ajouter
  33.                                 </span>
  34.                             </a>
  35.                         {% else %}
  36.                             {% if ((not is_granted('ROLE_ACCOUNTANT')) or is_granted('ROLE_ADMIN')) and company.locked == 0 %}
  37.                                 <a
  38.                                     href="{{ path('billing_address_edit', {'id': company.billingAddress.id}) }}"
  39.                                     class="btn-sm btn-secondary btn-action"
  40.                                 >
  41.                                     <i class="fas fa-pencil-alt"></i>
  42.                                     <span class="sr-only">
  43.                                         Editer
  44.                                     </span>
  45.                                 </a>
  46.                                 
  47.                             {% endif %}
  48.                             {% if (not is_granted('ROLE_ACCOUNTANT') or is_granted('ROLE_ADMIN')) and company.locked == 0 %}
  49.                                 {{ include('billing_address/_delete_form.html.twig') }}
  50.                             {% endif %}
  51.                         {% endif %}
  52.                     </div>
  53.                 </div>
  54.             </div>
  55.         </div>
  56.         <div class="card-body">
  57.             <ul>
  58.                 <li>
  59.                     <span class="font-weight-bold">
  60.                         Raion sociale :
  61.                     </span>
  62.                         {{ company.billingAddress.name }}
  63.                 </li>
  64.                 <li>
  65.                     <span class="font-weight-bold">
  66.                         Rue :
  67.                     </span>
  68.                     {{ company.billingAddress.street }}
  69.                 </li>
  70.                 <li>
  71.                     <span class="font-weight-bold">
  72.                         Ville : 
  73.                     </span>
  74.                     {{ company.billingAddress.city }}
  75.                 </li>
  76.                 <li>
  77.                     <span class="font-weight-bold">
  78.                         Code postal :
  79.                     </span>
  80.                     {{ company.billingAddress.postcode }}
  81.                 </li>
  82.                 <li>
  83.                     <span class="font-weight-bold">
  84.                         Pays :
  85.                     </span>
  86.                         {{ company.billingAddress.country }}
  87.                 </li>
  88.                 <li>
  89.                     <span class="font-weight-bold">
  90.                         Téléphone :
  91.                     </span>
  92.                     {{ company.billingAddress.phone }}
  93.                 </li>
  94.                 <li>
  95.                     <span class="font-weight-bold">
  96.                         Télécopie
  97.                     </span>
  98.                     {{ company.billingAddress.fax }}
  99.                 </li>
  100.                 <li>
  101.                     <span class="font-weight-bold">
  102.                         Méthode de paiement :
  103.                     </span>
  104.                         {{ company.billingAddress.paymentMethod }}
  105.                 </li>
  106.                 {% if company.billingAddress.paymentMethod == 'PRELEVEMENT' %}
  107.                     <li>
  108.                     <span class="font-weight-bold">
  109.                         Nom de la banque :
  110.                     </span>
  111.                     {{ company.billingAddress.bankName }}
  112.                 </li>
  113.                 <li>
  114.                     <span class="font-weight-bold">
  115.                         Banque :
  116.                     </span>
  117.                         {{ company.billingAddress.bankCode }}
  118.                 </li>
  119.                 <li>
  120.                     <span class="font-weight-bold">
  121.                         Guichet : 
  122.                     </span>
  123.                     {{ company.billingAddress.bankCounter }}
  124.                 </li>
  125.                 <li>
  126.                     <span class="font-weight-bold">
  127.                         N° de compte :
  128.                     </span>
  129.                     {{ company.billingAddress.accountNumber }}
  130.                 </li>
  131.                 <li>
  132.                     <span class="font-weight-bold">
  133.                         Clé :
  134.                     </span>
  135.                         {{ company.billingAddress.accountKey }}
  136.                 </li>
  137.                     <li>
  138.                     <span class="font-weight-bold">
  139.                         Code BIC :
  140.                     </span>
  141.                         {{ company.billingAddress.codeBic }}
  142.                 {% endif %}
  143.                 <li>
  144.                     <span class="font-weight-bold">
  145.                         Envoi de la facture par mail :
  146.                     </span>
  147.                     {% if company.billingAddress.sendInvoiceMail %} Oui {% else %} Non {% endif %}
  148.                 </li>
  149.                 {% if company.billingAddress.sendInvoiceMail %}
  150.                     <li>
  151.                         <span class="font-weight-bold">
  152.                             Email de facturation :
  153.                         </span>
  154.                             {{ company.billingAddress.billingEmail }}
  155.                     </li>
  156.                 {% endif %}
  157.             </ul>
  158.         </div>
  159.     </div>
  160.  {% endif %}