{% extends "core/report_base.html" %} {% load seizou_tags %} {% comment %} 見本の納品書。中身は全部作り物の文字で、context は scripts/render_sample_report.py と試験が作る (モデルを読まない)。 本物の納品書は shipping の帳票で作る。金額と合計は context に入った値をそのまま出し、ここでは計算しない。 {% endcomment %} {% block title %}納品書 {{ note.number }}{% endblock %} {% block report_title %}納品書{% endblock %} {% block head %}

{{ customer.name }} 御中

納品書番号{{ note.number }}
納品日{{ note.date }}

下記のとおり納品いたします。

{% endblock %} {% block content %} {% for line in lines %} {% endfor %}
品番品名数量単価金額
{{ line.item_code }} {{ line.item_name }} {{ line.quantity|floatformat:"-2g" }} {{ line.unit_price|floatformat:"-2g"|yen }} {{ line.amount|floatformat:"-2g"|yen }}
合計{{ total|floatformat:"-2g"|yen }}
{% endblock %}