JourneyJoker/templates/payment/invoice.html

145 lines
4.3 KiB
HTML
Raw Normal View History

{% load static %}
{% load dbsetting %}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>{{ title }}</title>
<link rel="stylesheet" type="text/css" href="{% static "payment/invoice/invoice.css" %}">
</head>
<body>
<div class="invoice-box">
<table cellpadding="0" cellspacing="0">
<tr class="top">
<td colspan="2">
<table>
<tr>
<td class="title">
<img src="{% static "frontend/images/logo.png" %}" style="width: 100%; max-width: 300px" />
</td>
<td>
{{ type }} #: {{ object.id }}<br />
Datum: {{ object.created }}
</td>
</tr>
</table>
</td>
</tr>
<tr class="information">
<td colspan="2">
<table>
<tr>
<td>
<b>Empfänger:</b><br />
{% if object.billing_address.company %}{{ object.billing_address.company }}<br />{% endif %}
{{ object.billing_address.full_name }}<br />
{{ object.billing_address.street }}<br />
{{ object.billing_address.zip }} {{ object.billing_address.city }}<br />
{{ object.billing_address.country.name }}{% if object.billing_address.vat_id %}<br />
UID: {{ object.billing_address.vat_id }}{% endif %}
</td>
<td>
<b>Absender:</b>
{% dbsetting "billing.provider.name" "" %}<br />
{% dbsetting "billing.provider.street" "" %}<br />
{% dbsetting "billing.provider.zip" "" %} {% dbsetting "billing.provider.city" "" %}<br />
{% dbsetting "billing.provider.country" "" %}{% dbsetting "billing.provider.vat_id" "" as vat_id %}{% if vat_id %}<br />
UID: {{ vat_id }}{% endif %}
</td>
</tr>
</table>
</td>
</tr>
</table>
<h1>{{ title }}</h1>
<table cellpadding="0" cellspacing="0">
<tr class="heading">
<td>Produkt</td>
<td>Beschreibung</td>
<td>Anzahl</td>
<td>Einzelpreis</td>
<td>Gesamtpreis</td>
</tr>
{% for item in object.invoiceitem_set.all %}
<tr class="item{% if forloop.last %} last{% endif %}">
<td>{{ item.name }}</td>
<td>{{ item.description }}</td>
<td>{{ item.count }}</td>
<td>{{ object.currency }} {{ item.net_each }}</td>
<td>{{ object.currency }} {{ item.net_total }}</td>
</tr>
{% endfor %}
<tr class="tax">
<td>Zwischensumme</td>
<td></td>
<td></td>
<td></td>
<td>{{ object.currency }} {{ object.price_net }}</td>
</tr>
<tr class="tax last">
<td>{{ object.tax_rate }}% USt</td>
<td></td>
<td></td>
<td></td>
<td>{{ object.currency }} {{ object.tax }}</td>
</tr>
<tr class="total">
<td>Gesamtsumme</td>
<td></td>
<td></td>
<td></td>
<td>{{ object.currency }} {{ object.price_gross }}</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0">
<tr class="heading">
<td>Zahlungsmethode</td>
<td>Zahlungs-ID</td>
<td>Zahlungsdatum</td>
<td>Betrag</td>
</tr>
{% for payment in object.invoicepayment_set.all %}
<tr class="details">
<td>{{ payment.gateway }}</td>
<td>{{ payment.gateway_id }}</td>
<td>{{ payment.timestamp }}</td>
<td>{{ object.currency }} {{ payment.amount }}</td>
</tr>
{% endfor %}
{% if not object.is_paid %}
<tr class="details balance">
<td>Offener Betrag</td>
<td></td>
<td></td>
<td>{{ object.currency }} {{ object.balance }}</td>
</tr>
{% endif %}
</table>
<table cellpadding="0" cellspacing="0">
<tr class="heading">
<td>Weitere Informationen</td>
</tr>
<tr class="details">
<td>{% autoescape off %}{{ bottom_tip }}{% endautoescape %}</td>
</tr>
</table>
</div>
</body>
</html>