90 lines
4.4 KiB
HTML
90 lines
4.4 KiB
HTML
{% load mathfilters %}
|
|
{% load humanize %}
|
|
{% load counter_tag %}
|
|
{% if request.user.profile.agency.paymentstatus == 1 %}
|
|
<p>Ihre Agentur darf die Plattform kostenlos nutzen. Vielen Dank für Ihre Unterstützung!</p>
|
|
{% else %}
|
|
<!-- Infoblock -->
|
|
<div class="row" style="">
|
|
<div class="col-6">
|
|
<div class="card d-block mb-3 mr-2">
|
|
<div class="card-body">
|
|
<h5 class="card-title">Ihr Betrag</h5>
|
|
<p>Ihr monatlicher Nutzungsbeitrag setzt sich wie folgt zusammen:</p>
|
|
<table style="width: 75%">
|
|
<tr>
|
|
<td>Grundbetrag (inkl. 3 Nutzer)</td><td>21,00 €</td>
|
|
</tr>
|
|
<tr>
|
|
{% loadUserCount request.user as usercount %}
|
|
<td>Zusätzliche Nutzer (3,00 € pro Nutzer)</td><td>{{usercount}}</td>
|
|
</tr>
|
|
<tr>
|
|
{% loadMWST user as mwst %}
|
|
<td>Gesetzliche MwSt. (19%)</td><td>{{mwst|floatformat:2|intcomma}} €</td>
|
|
</tr>
|
|
<tr>
|
|
<td> </td>
|
|
</tr>
|
|
<tr class="mt-2">
|
|
{% loadFinalMoney user as fm %}
|
|
<td><b>Monatlicher Bruttobetrag</b></td><td><b>{{fm|floatformat:2|intcomma}} €</b></td>
|
|
</tr>
|
|
</table>
|
|
<hr>
|
|
<h5 class="card-title">Ihre Zahlungsweise</h5>
|
|
|
|
{% getNextMonth request.user.profile.agency as nextMonth %}
|
|
Ihre Agentur wurde am {{ request.user.profile.agency.registerdate|date:"d.m.Y" }} registriert.
|
|
{% if paymentplan == None and bills|length == 0 %}
|
|
Es wurde noch keine Zahlungsweise ausgewählt und keine Rechnungen gefunden. Sie können die Digitale Agentur bis zum {{nextMonth|date:"d.m.Y"}} kostenlos nutzen. Möchten Sie die Digitale Agentur auch nach diesem Zeitraum nutzen, wählen Sie bitte einen Zahlplan aus.
|
|
<br />
|
|
<a href="{% url 'ag-billplanupdate' request.user.profile.agency.pk %}" class="btn btn-primary btn mt-2" onclick="">Zahlplan jetzt auswählen</a>
|
|
{% elif bills|length > 0 and paymentplan == "" %}
|
|
Ihre aktuelle Rechnungen erlaubt Ihnen die Nutzung der digitalen Agentur bis zum {{bills.0.end|date:"d.m.Y"}}. Danach wird der Zugang gesperrt. Legen Sie einen neuen Zahlplan fest, um die digitale Agentur auch weiterhin zu nutzen.<br />
|
|
<a href="{% url 'ag-billplanupdate' request.user.profile.agency.pk %}" class="btn btn-primary btn mt-2" onclick="">Zahlplan jetzt auswählen</a>
|
|
{% else %}
|
|
<br />
|
|
Ausgewählter Zahlungsplan: {{request.user.profile.agency.paymentplan}} Monat{% if request.user.profile.agency.paymentplan > 1 %}e{% endif %}<br />
|
|
Nächste Rechnungserstellung am {{bills.0.end|date:"d.m.Y"}}<br />
|
|
<a href="{% url 'ag-billplanend' request.user.profile.agency.pk %}" class="btn btn-primary btn mt-2" onclick="">Zahlplan abbestellen</a>
|
|
{% endif %}
|
|
<hr>
|
|
<h5 class="card-title.">Fragen, Hilfe, Kündigung</h5>
|
|
Bei Fragen zu Ihrer Abrechnung melden Sie sich bitte per E-Mail an <a href="mailto:abrechnung@digitale-agentur.com">abrechnung@digitale-agentur.com</a>.
|
|
<!-- TASK: Kündigungsmodaliäten einfügen -->
|
|
Die Kündigungsmodalitäten finden Sie in den AGB's. Alternativ wenden Sie sich an den Support.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-6">
|
|
<!-- Mail für Rechnungen -->
|
|
<div class="card d-block mb-3">
|
|
<div class="card-body">
|
|
<h5 class="card-title">E-Mail-Adresse</h5>
|
|
Informationen über neue Rechnungen werden automatisch an folgende E-Mailadresse gesendet.<br />
|
|
{% if request.user.profile.agency.payment_address == None %}
|
|
<i>Es wurde keine Adresse hinterlegt. Die Adresse wird an die Agenturadresse versendet:</i> <b>{{request.user.profile.agency.agency_email}}</b>
|
|
{% else %}
|
|
{{request.user.profile.agency.payment_address}}
|
|
{% endif %}
|
|
<br />
|
|
<a href="{% url 'ag-billmailupdate' request.user.profile.agency.pk %}" class="btn btn-primary btn mt-2">E-Mailadresse ändern</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card d-block mb-3">
|
|
<div class="card-body">
|
|
<h5 class="card-title">Rechnungen</h5>
|
|
{% if bills|length == 0 %}
|
|
Es liegen keine Rechnungen vor.
|
|
{% endif %}
|
|
{% for bill in bills %}
|
|
<a href="{% url 'ag-getbillpdf' bill.pk %}" target="_blank">Rechnung vom {{bill.billdate|date:"d.m.Y"}} ({{bill.billnumber}})</a> - {% if bill.billstatus == "open" %} Offen {% elif bill.billstatus == "paid" %} Bezahlt {% endif %} <br />
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
{% endif %} |