{# 注文のデータの明細の表 (相手の品番のまま)。受信箱の詳細と受け入れの画面で使う。object は受信箱の行。品名の下に工程名と見積の番号 (あれば。作者の決め)。 #} {# 変更と取消の版の行は、行番号の次に「明細状態」の列 (コードの名前と理由の名前) のある表。第 1 版の行の表は今のまま (列の数を変えない)。 #} {# 変更の版の表: 受注にある行は、数・単価・納期が注文と違えば値の下に小さな字で「今: …」(受け入れると注文の値で上書きするので、上書きされる前に見せる。rlines = connect_tags の revision_lines)。 #} {# 金額の閲覧が無い人には単価の列と単価の「今」を出さない (第 1 版の表と同じ seizou.hide_money)。受注に無い行と取り消した明細には印を出す。断る画面 (connect/inbox_reject.html) にも同じ表が出る。 #} {% load seizou_tags connect_tags %}{% revision_lines object as rlines %}{% if rlines is not None %}
{% if not seizou.hide_money %}{% endif %} {% for entry in rlines %}{% with line=entry.line %} {% if not seizou.hide_money %}{% endif %} {% endwith %}{% empty %} {% endfor %}
行番号 明細状態 相手の品番 品名 数量 単位単価納期
{{ line.line_no|default_if_none:"" }} {{ entry.status }}{% if entry.reason %} ({{ entry.reason }}){% endif %}{% if entry.removed %}受け入れると受注から消す{% elif entry.missing %}受注に無い (受け入れると足す){% endif %} {{ line.part_no }} {{ line.part_name }} {{ line.qty|payload_number|comma }}{% if entry.now_qty is not None %}今: {{ entry.now_qty|comma }}{% endif %} {{ line.unit }}{{ line.unit_price|default_if_none:""|payload_number|yen }}{% if entry.now_price is not None %}今: {{ entry.now_price|yen }}{% endif %}{{ line.due_date|default_if_none:"" }}{% if entry.now_due is not None %}今: {{ entry.now_due }}{% endif %}
明細がありません。
{% else %}
{% if not seizou.hide_money %}{% endif %} {% for line in object.payload.lines %} {% if not seizou.hide_money %}{% endif %} {% empty %} {% endfor %}
行番号 相手の品番 品名 数量 単位単価納期
{{ line.line_no|default_if_none:"" }} {{ line.part_no }} {{ line.part_name }}{% if line.process_name %}工程 {{ line.process_name }}{% endif %}{% if line.quote_no %}見積の番号 {{ line.quote_no }}{% endif %} {{ line.qty|payload_number|comma }} {{ line.unit }}{{ line.unit_price|default_if_none:""|payload_number|yen }}{% if line.unit_price is not None and line.unit_price != "" %} / {{ line|payload_price_unit }}{% endif %}{{ line.due_date|default_if_none:"" }}
明細がありません。
{% endif %}