{% extends "core/report_base.html" %} {% load seizou_tags %} {% comment %} 協力企業への発注書の帳票。context は purchasing.reports.purchase_order_context が作る (表を読むだけ)。 金額と合計は context の値をそのまま出し、ここでは計算しない。税は扱わない (発注に税の列が無いため。合計は「金額の合計 (税抜)」)。 受領場所は context の既定の 1 文 (発注に受領場所の列が無い)。支払の条件は取引先の締日と支払日の字。空なら「—」と、notices の 1 行。 品名の下の「工程 …」は明細の工程の名前。空なら出さない。列は増やさない。 notices は納期の空の明細と支払の条件の空の知らせ (1 つずつ 1 行)。 見た目は core の report.css だけを使う (画面の CSS は使わない)。 pdf_notice は PDF を作れない環境で、印刷用の HTML に落としたときだけ入る。 {% endcomment %} {% block title %}発注書 {{ order.number }}{% endblock %} {% block report_title %}発注書{% endblock %} {% block head %} {% if pdf_notice %}
{{ pdf_notice }}
{% endif %}{{ partner.name }} 御中
| 発注番号 | {{ order.number }} |
|---|---|
| 発注日 | {{ order.date|date:"Y年n月j日" }} |
| 受領場所 | {{ delivery_place }} |
| 支払の条件 | {% if payment_terms %}{{ payment_terms }}{% else %}—{% endif %} |
下記のとおり発注いたします。
{% for notice in notices %}{{ notice }}
{% endfor %} {% endblock %} {% block content %}| 品番 | 品名 | 数量 | 単位 | 単価 | 金額 | 納期 |
|---|---|---|---|---|---|---|
| {{ line.item_code }} | {{ line.item_name }}{% if line.process %} 工程 {{ line.process }} {% endif %} |
{{ line.quantity|floatformat:"-2g" }} | {{ line.unit }} | {{ line.unit_price|floatformat:"-2g"|yen }} / {{ line.price_unit }} | {{ line.amount|floatformat:"-2g"|yen }} | {% if line.due_date %}{{ line.due_date|date:"Y年n月j日" }}{% else %}—{% endif %} |
| 金額の合計 (税抜) | {{ total|floatformat:"-2g"|yen }} | |||||
備考 {{ order.note }}
{% endif %} {% endblock %}