{# -*- mode: django; -*- #}{% load i18n kirppu_tags %}{% trans "Vendor:" %} {{ vendor }}
{% for table_key, table in tables.items %}{% if table.items and not table.spec.hidden %}
{{ table.spec.title }}
{% if table.items  %}   #  {% trans "code"|ljust:"8" %}  {% trans "price"|ljust:price_width %}  {% trans "name" %}
{% for item in table.items %}{{ forloop.counter|rjust:"4" }}  {{ item.code }}  {{ item.price|format_price|ljust:price_width }}  {{ item.name|ljust:"10" }}{% if item.box %} [[{{ item.value }} / {{ item.total }}]]{% endif %}
{% endfor %} {% trans "total:" %} {{ table.sum|format_price }}
{% else %}{% trans "No items" %}
{% endif %}{% endif %}{% endfor %}
{% if signature %}
---- BEGIN SIGNATURE ----
{{ signature }}
---- END SIGNATURE ----
{% endif %}
{# -*- mode: django; -*- #}{% load i18n kirppu_tags %}{% trans "Vendor:" %} {{ vendor }}
{% for table_key, table in tables.items %}{% if table.items and not table.spec.hidden %}
{{ table.spec.title }}
{% if table.items  %}   #  {% trans "code"|ljust:"8" %}  {% trans "price"|ljust:price_width %}  {% trans "name" %}
{% for item in table.items %}{{ forloop.counter|rjust:"4" }}  {{ item.code }}  {{ item.price|format_price|ljust:price_width }}  {{ item.name|ljust:"10" }}{% if item.box %} [[{{ item.value }} / {{ item.total }}]]{% endif %}
{% endfor %} {% trans "total:" %} {{ table.sum|format_price }}
{% else %}{% trans "No items" %}
{% endif %}{% endif %}{% endfor %}
{% if signature %}
---- BEGIN SIGNATURE ----
{{ signature }}
---- END SIGNATURE ----
{% endif %}
Convert mobile view text version to DOS.
Convert mobile view text version to DOS.

text/plain actually uses CRLF per spec.
