<% if (logoBase64) { %> <% } %> <%= company.company_name %> <%= company.company_legal_form || "" %>
<%= company.street %> <%= company.house_number %>
<%= company.postal_code %> <%= company.city %>
<%= company.country %>
<% if (company.phone) { %> Tel: <%= company.phone %>
<% } %> <% if (company.email) { %> E-Mail: <%= company.email %> <% } %>

RECHNUNG / FACTURA

<% if (company.invoice_logo_path) { %> <% } %>
Rechnungsnummer: <%= invoice.number %>
N.I.E / DNI: <%= patient.dni || "" %> Geburtsdatum: <%= patient.birthdate ? new Date(patient.birthdate).toLocaleDateString("de-DE") : "" %>

Patient:
<%= patient.firstname %> <%= patient.lastname %>
<%= patient.street %> <%= patient.house_number %>
<%= patient.postal_code %> <%= patient.city %>

Für unsere Leistungen erlauben wir uns Ihnen folgendes in Rechnung zu stellen:

<% services.forEach(s => { %> <% }) %>
Menge Behandlung Preis (€) Summe (€)
<%= s.quantity %> <%= s.name %> <%= s.price.toFixed(2) %> <%= s.total.toFixed(2) %>
TOTAL: <%= total.toFixed(2) %> €
Behandelnder Arzt:
<%= doctor.first_name %> <%= doctor.last_name %>
<% if (doctor.fachrichtung) { %> Fachrichtung: <%= doctor.fachrichtung %>
<% } %> <% if (doctor.arztnummer) { %> Arztnummer: <%= doctor.arztnummer %>
<% } %>