<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Facture FA-{{ invoice.number }}</title>
<link rel="stylesheet" type="text/css" href="{{ publicDir ~ 'css/pdf_styles.css' }}">
</head>
<body>
<header>
<table>
<tr>
<td class="w-50 pr-5">
<img src="{{ publicDir ~ 'img/logo.png' }}" width="200px" alt="">
<h4 class="pt-4">KOAH - DIGIDOM - GROUPE PARAJURIS</h4>
</td>
<td class="w-50 pl-5 mt-5">
<div>
<strong>FACTURE FA-{{ invoice.number }}</strong>
<div>En date du {{ invoice.createdAt|date('d/m/Y') }}</div>
<div>{% if invoice.organization.vatID != "" %}TVA Intracommunautaire: {{ invoice.organization.vatID }}{% endif %}</div>
</div>
{% if invoice.organization.legalName is empty %}
<h5 class="pt-3">{{ companyName }}</h5>
<spam>(société en cours de création)</spam>
{% else %}
<h5 class="pt-3">{{ invoice.organization.legalName }}</h5>
{% endif %}
{% if invoice.organization.address %}
<div>
{{ invoice.organization.address.streetAddress }}<br>
{{ invoice.organization.address.postalCode }}<br>
{{ invoice.organization.address.addressLocality }}<br>
{{ invoice.organization.address.CountryTranslation|upper }}<br><br>
{% if invoice.organization.SIRET is not null %}
SIREN : {{ invoice.organization.SIRET }}
{% endif %}
</div>
{% endif %}
</td>
</tr>
</table>
</header>
<main>
<div class="clearfix float-none">
<div class="py-4" >
<span style="font-size: 20px">Objet : {{ invoice.object }}</span><br>
<span style="font-size: 15px">Facture de prestation de services</span>
</div>
</div>
<table class="w-100 pt-2">
<thead>
<tr>
<th class="name">Produit</th>
<th class="text-center">PU HT</th>
<th class="text-center">Quantité</th>
{% if isDisplayDiscount == true %}
<th class="text-center">Réduction</th>
{% endif %}
<th class="text-center">Montant HT</th>
</tr>
</thead>
<tbody>
{% for item in items %}
{% if item.product is not null %}
<tr>
<td class="name">
<strong>{{ item.product.name }}</strong>
<br>
{% if discountName != "" and discountCode > 0 and isDisplayDiscountInvoice == false and item.discountWithoutTax > 0 %}
<small>{{ discountLabel }} : {{ item.discountWithoutTax }} € de remise {{ discountCodeType == "PRODUCT_DISCOUNT" ? " " : "sur l'abonnement" }}</small>
<br>
{% endif %}
<small>{{ item.description|raw }}</small>
</td>
<td class="text-center">{{ item.unitPriceWithoutTax|number_format(2) }}</td>
<td class="text-center">{{ item.quantity }}</td>
{% if isDisplayDiscount == true %}
<td class="text-center">{{ item.discountWithoutTax }}</td>
{% endif %}
<td class="text-center">
{{ max(((item.unitPriceWithoutTax * item.quantity) - item.discountWithoutTax)|number_format(2), 0) }}
</td>
{#<td class="tva">{{ (item.unitPriceWithoutTax * item.quantity * invoice.VATRate/100)|number_format(2) }} comment</td>#}
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
{% if discountCode != 0 and isDisplayDiscountInvoice == true %}
<div class="clearfix float-none">
<p class="py-4">
Code promo {{ discountName }} utilisé ( {{ discountCode|number_format(2) }} € )
</p>
</div>
{% endif %}
<table class="mt-5 w-100">
<tr>
<td class="w-50">
<div class="p-2 d-none border border-secondary">
Notes :<br>
Conditions de souscriptions :<br>
<ul>
<li>L'entretien seul sera facturé 100 euros déductible
de la facture globale en cas d'acceptation du devis
</li>
<li>Paiement avant la rédaction/relecture des actes</li>
<li>Remboursement de 50% de la somme en cas
d'annulation de votre parts si les actes ont déjà été
rédigés.
</li>
</ul>
</div>
</td>
<td class="w-50 align-top">
<table class="w-100">
{% if discount_without_tax != 0 %}
<tr>
<td class="w-50 text-right font-weight-bold">Réduction HT</td>
<td class="w-50 text-right font-weight-bold">{{ discount_without_tax|number_format(2) }} €
</td>
</tr>
{% endif %}
<tr>
<td class="w-50 text-right font-weight-bold">Total net HT</td>
<td class="w-50 text-right font-weight-bold">{{ subtotal_without_tax|number_format(2) }} €</td>
</tr>
{% if subtotal_vat != 0 %}
<tr>
<td class="w-50 text-right">TVA {{ invoice.VATRate|number_format(2) }}%</td>
<td class="w-50 text-right">{{ subtotal_vat|number_format(2) }} €</td>
</tr>
{% endif %}
<tr>
<td class="w-50 text-right font-weight-bold">Montant total TTC</td>
<td class="w-50 text-right font-weight-bold">{{ subtotal|number_format(2) }} €</td>
</tr>
{% if totalRefundedPayment > 0 %}
<tr>
<td class="w-50 text-right font-weight-bold">Remboursements</td>
<td class="w-50 text-right font-weight-bold">{{ totalRefundedPayment|number_format(2) }} €</td>
</tr>
{% endif %}
{% if invoice.creditNotes %}
{% for credit in invoice.creditNotes %}
<tr>
<td class="w-50 text-right">
<p class="my-4">
Avoir du {{ credit.createdAt|date('d/m/Y') }}
<br>
<em><small>AV-{{ credit.number }}</small></em>
</p>
</td>
<td class="w-50 text-right font-italic">
{{ credit.amount|number_format(2) }} €
</td>
</tr>
{% endfor %}
{% endif %}
</table>
</td>
</tr>
</table>
<table class="my-4 w-100">
<tr>
<td class="w-50"></td>
<td class="w-50">
<strong class="d-none">Signature du client précédée de la mention 'Lu et approuvé, bon pour accord' :</strong>
</td>
</tr>
</table>
<div style="margin-top: 5%">
<div>
{% set paymentMethod = invoice.isDomiciliation ?
'Prélèvement bancaire' :
'Carte Bancaire, Virement bancaire, Prélèvement bancaire' %}
Moyen de règlement : {{ paymentMethod }}<br/><br/>
Banque : <span>BRED VINCENNES</span><br/>
<span style="margin-left: 76px">BIC : BREDFRPPXXX</span><br/>
<span style="margin-left: 76px">IBAN : FR76 1010 7002 2800 6220 5303 854</span>
</div>
</div>
<table class="mt-5">
<tr>
<td class="small">
<h5>Conditions d’utilisation</h5>
<small>
En conformité de l’article L 441-6 du Code de commerce :<br>
La facture est payable dès réception. Pas d’escompte pour paiement anticipé. Tout règlement effectué
après expiration de ce délai donnera lieu, à titre de pénalité de retard, à
l’application d’un intérêt égal à celui appliqué par la Banque Centrale Européenne à son opération
de refinancement la plus récente, majoré de 10 points de pourcentage, ainsi qu'à une indemnité
forfaitaire pour frais de recouvrement d'un montant de 40 Euros. Les pénalités de retard sont
exigibles sans qu’un rappel soit nécessaire. <br>
Informations concernant les droits d'exploitation : <br>
Le prestataire ne cède que les droits d’exploitation de la création limités aux termes du présent
document. Le prestataire reste propriétaire de l’intégralité des créations tant que la prestation
n’est pas
entièrement réglée. Toute utilisation sortant du cadre initialement prévu dans ce devis est
interdite; sauf autorisation expresse et écrite du prestataire.
</small>
</td>
</tr>
</table>
</main>
</body>
</html>