Files
beelloo/internal/render/template.html
2026-02-11 11:13:26 +01:00

84 lines
2.8 KiB
HTML

<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<title>Facture {{.Invoice.Number}}</title>
{{if .CSSHref}}
<link rel="stylesheet" href="{{.CSSHref}}">
{{else}}
<style>
{{.CSS}}
</style>
{{end}}
</head>
<body>
<div class="page">
<header class="header">
<div class="seller">
<div class="seller-name">{{.Seller.Name}}</div>
{{range .Seller.Address}}<div class="seller-line">{{.}}</div>{{end}}
</div>
<div class="buyer">
<div class="buyer-name">{{.Buyer.Name}}</div>
{{range .Buyer.Address}}<div class="buyer-line">{{.}}</div>{{end}}
{{if .Buyer.SIRET}}<div class="buyer-line">SIRET : {{.Buyer.SIRET}}</div>{{end}}
</div>
</header>
<section class="meta">
<div class="invoice-number">Facture n° {{.Invoice.Number}}</div>
<div class="invoice-date">{{.Invoice.Location}}, le {{.InvoiceDate}}</div>
</section>
<section class="object">
<div class="object-title">Objet : {{.Invoice.Subject}}</div>
<div class="object-desc">{{.InvoiceDescription}}</div>
</section>
<section class="table-section">
<table class="items">
<thead>
<tr>
<th class="col-designation">Désignation</th>
<th class="col-price">Prix unitaire</th>
<th class="col-qty">Quantité</th>
<th class="col-amount">Montant (EUR)</th>
</tr>
</thead>
<tbody>
{{range .Items}}
<tr>
<td class="col-designation">{{.Designation}}</td>
<td class="col-price">{{.UnitPrice}}</td>
<td class="col-qty">{{.Quantity}}</td>
<td class="col-amount">{{.Amount}}</td>
</tr>
{{end}}
</tbody>
<tfoot>
<tr class="total-row">
<td colspan="3" class="total-label">Total HT</td>
<td class="total-value">{{.TotalExclTax}}</td>
</tr>
<tr>
<td colspan="4" class="vat-note">TVA non applicable, art 293 B du CGI</td>
</tr>
</tfoot>
</table>
</section>
<footer class="footer">
<div class="payment-title">Paiement souhaité par virement bancaire :</div>
<div class="payment-detail"><strong>Nom associé au compte bancaire</strong> : {{.Payment.Holder}}</div>
<div class="payment-detail"><strong>IBAN N°</strong> : {{.Payment.IBAN}}</div>
<div class="seller-contact">
<span class="contact-item">{{.Seller.Name}}</span>
{{if .Seller.Email}}<span class="contact-item">E-mail : {{.Seller.Email}}</span>{{end}}
{{if .Seller.Phone}}<span class="contact-item">Téléphone : {{.Seller.Phone}}</span>{{end}}
{{if .Seller.SIRET}}<span class="contact-item">SIRET : {{.Seller.SIRET}}</span>{{end}}
</div>
</footer>
</div>
</body>
</html>