{% extends "pretixcontrol/event/settings_base.html" %} {% load i18n %} {% load formset_tags %} {% load bootstrap3 %} {% block title %} {% if rule %} {% blocktrans with name=rule.name %}Tax rule: {{ name }}{% endblocktrans %} {% else %} {% trans "Tax rule" %} {% endif %} {% endblock %} {% block inside %} {% if rule %}

{% blocktrans with name=rule.name %}Tax rule: {{ name }}{% endblocktrans %}

{% else %}

{% trans "Tax rule" %}

{% endif %}
{% csrf_token %} {% bootstrap_form_errors form %}
{% trans "General" %} {% bootstrap_field form.name layout="control" %} {% bootstrap_field form.internal_name layout="control" %} {% bootstrap_field form.rate addon_after="%" layout="control" %} {% bootstrap_field form.code layout="control" %} {% bootstrap_field form.price_includes_tax layout="control" %}
{% trans "Advanced" %} {% bootstrap_field form.eu_reverse_charge layout="control" %} {% bootstrap_field form.home_country layout="control" %} {% bootstrap_field form.keep_gross_if_rate_changes layout="control" %}

{% trans "Custom rules" %}

{% blocktrans trimmed %} These settings are intended for professional users with very specific taxation situations. If you create any rule here, the reverse charge settings above will be ignored. The rules will be checked in order and once the first rule matches the order, it will be used and all further rules will be ignored. If no rule matches, tax will be charged. {% endblocktrans %} {% trans "All of these rules will only apply if an invoice address is set." %}
{% trans "Condition" %}
{% trans "Calculation" %}
{% trans "Reason" %}
{{ formset.management_form }} {% bootstrap_formset_errors formset %}
{% for form in formset %} {% bootstrap_form_errors form %}
{{ form.id }} {% bootstrap_field form.DELETE form_group_class="" layout="inline" %} {% bootstrap_field form.ORDER form_group_class="" layout="inline" %}
{% bootstrap_field form.country layout='inline' form_group_class="" %} {% bootstrap_field form.address_type layout='inline' form_group_class="" %}
{% bootstrap_field form.action layout='inline' form_group_class="" %} {% bootstrap_field form.rate layout='inline' form_group_class="" %}
{% bootstrap_field form.code layout='inline' form_group_class="" %} {% bootstrap_field form.invoice_text layout='inline' form_group_class="" %}
{% endfor %}

{% trans "Change history" %}

{% include "pretixcontrol/includes/logs.html" with obj=rule %}
{% endblock %}