{% extends "base.html" %} {% load i18n %} {% load juntagrico.config %} {% block page_title %}

{% trans "Bill" %} {{ bill.pk }}

{% endblock %} {% block content %} {% config "organisation_address" as addr %} {% config "duedate_notice_url" as notice_url %}
{{ addr.name }}
{{ addr.street }} {{ addr.number}}
{{ addr.zip }} {{ addr.city}}
{{ addr.extra}}
{{ member.first_name }} {{ member.last_name }}
{{ member.addr_street }}
{{ member.addr_zipcode }} {{ member.addr_location }}

{% trans "Bill" %} {{ bill.pk }}

{{ bill.bill_date|date:"SHORT_DATE_FORMAT" }}
{% trans "Period" %}: {{ bill.business_year.start_date|date:"SHORT_DATE_FORMAT" }} - {{ bill.business_year.end_date|date:"SHORT_DATE_FORMAT" }}
{% for item in bill.ordered_items %}
{{ item }}
{{ item.amount | floatformat:2 }}
{% endfor %}
Total
{{ bill.amount | floatformat:2 }}
{% if bill.vat_amount %}

{% trans "Including VAT of" %} {{ vat_percent }}% ({{ bill.vat_amount | floatformat:2 }})
{% trans "VAT Number:" %} {{ vat_number }}

{% endif %} {% if notice_url %}

{% trans "The billed amount is due for payment according to the due date notice found here:" %}
{{ notice_url }}

{% endif %}

{{ bill.public_notes | default_if_none:"" }}

{% if payments %}

{% trans "Payments per" %} {{ today|date:"SHORT_DATE_FORMAT" }}:

{% for payment in payments %}
{{ payment.paid_date|date:"SHORT_DATE_FORMAT" }}
{{ payment.type }}
{{ payment.amount | floatformat:2 }}
{% endfor %}
{% if bill.paid %}
{% trans "Bill paid completely" %}
{% else %}
{% trans "Amount open yet" %}:
{{ open_amount | floatformat:2 }}
{% endif %}
{% endif %}
{% if qr_svg %} {{ qr_svg | safe }} {% else %}

{% config "organisation_address" as addr %} {% trans "Please pay specifying bill number to:" %}
IBAN {{ paymenttype.iban }}
{{ paymenttype.name }}
{% trans "in favor of" %}
{{ addr.name }}, {{ addr.zip }} {{ addr.city }}

{% endif %}
{% endblock %}