Show product name if line description is not available
This commit is contained in:
parent
76c1c40362
commit
3bc150c088
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ Wir berechnen dir daher die folgenden Mitgliedsbeiträge:
|
||||||
Wir werden dir daher die folgenden Mitgliedsbeiträge berechnen:
|
Wir werden dir daher die folgenden Mitgliedsbeiträge berechnen:
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{% for line in invoice.lines %}
|
{% for line in invoice.lines %}
|
||||||
{{ line.description.ljust(39) }} {{ (line.quantity|format_quantity).rjust(5) }} × {{ (line.unit_price|format_currency(currency=line.currency.code)).rjust(9) }} = {{ (line.amount|format_currency(currency=line.currency.code)).rjust(12) }}
|
{% if line.description %}{{ line.description.ljust(39) }}{% elif line.product %}{{ line.product.name.ljust(39) }}{% else %}{{ " ".ljust(39) }}{% endif %} {{ (line.quantity|format_quantity).rjust(5) }} × {{ (line.unit_price|format_currency(currency=line.currency.code)).rjust(9) }} = {{ (line.amount|format_currency(currency=line.currency.code)).rjust(12) }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{{ "".ljust(72, '-') }}
|
{{ "".ljust(72, '-') }}
|
||||||
{{ "Summe".ljust(59) }} {{ (invoice.total_amount|format_currency).rjust(12) }}
|
{{ "Summe".ljust(59) }} {{ (invoice.total_amount|format_currency).rjust(12) }}
|
||||||
|
|
Loading…
Reference in a new issue