{% load i18n %}

{% trans "Lines to generate" %}

{% if lines_preview.message %} {% else %} {% for error in lines_preview.errors %} {% endfor %} {% for row in lines_preview.rows %} {% empty %} {% if not lines_preview.extra_rows %} {% endif %} {% endfor %} {% for row in lines_preview.extra_rows %} {% endfor %} {% if lines_preview.rows or lines_preview.extra_rows %} {% endif %}
{% trans "Contract line" %} {% trans "Unit" %} {% trans "Unit price" %} {% trans "Quantity" %} {% trans "Amount" %}
{{ row.line.contract_line }} {% if row.line.contract_line.contract_id != lines_preview.contract.pk %}
{{ row.line.contract_line.contract }} {% endif %}
{{ row.line.contract_line.unit }} {{ row.line.amount }}
{% trans "Accounting dimensions" %}
{{ row.dimensions_form.accounting_dimensions }}
{% trans "No contract line to invoice for this period." %}
{{ row.amount|default_if_none:"—" }}
{% trans "Accounting dimensions" %}
{{ row.dimensions_form.accounting_dimensions }}
{% trans "Total" %} {{ lines_preview.total }}
{% if lines_preview.amount_too_low %} {% endif %} {% trans "These lines are created when the invoice is saved. Quantities and unit prices changed here apply to this invoice only; amounts are recalculated when you change a value. Added lines need a unit price (quantity 1 when left empty); empty ones are ignored." %} {% endif %}