{% extends "core/detail.html" %} {% load seizou_tags seizou_icons connect_tags %} {# 受けた仕入明細の詳細 (候補 C111): core の詳細 (基本情報) の上に、記録の今の状態の黄色の 1 行 (知らせの段 5): 仕入明細の登録番号が自社の登録番号と違う・答えが得意先に届いていない。 #} {# タブの後に明細の表 (行番号・受注番号-行番号 (受注の詳細へ link)・品目・受領日・受領数量・単位・単価・金額・受注の数と自社の出荷済みの数・自社の答え)。 #} {# 金額の閲覧の無い人には単価と金額の列を見出しごと出さない。画面には EDI のコードの字を出さず、日本語の字を出す。 #} {# 頭の右の緑は「答える」(未回答・確かめ中のときだけ。受信した注文を受け入れられる人 = 請求書の権限)。答えが届いていなければ黄の 1 行に「送り直す」。 #} {# タブの後の「請求書と比べる」の枠 (金額の閲覧の無い人には出さない): 自社が承諾した明細の金額と、期間の重なる同じ得意先の請求書の小計の合計と差。知らせではなく説明の字。 #} {% block edit_button %}{% if object.status == "received" or object.status == "partial" %}{% can_write "billing.Invoice" as can_answer %}{% if can_answer %}{% icon "check" "size-4" %}答える{% endif %}{% endif %}{% endblock %} {% block content %}
{% if object.status == "cancelled" %} {% endif %}{% received_self_invoice_registration_note object as registration_note %}{% if registration_note %} {% endif %}{% if object.reply_message_id and not object.reply_sent_at %} {% endif %}
{{ block.super }}{% endblock %} {% block after_tabs %}{% received_self_invoice_rows object seizou.hide_money as rows %}

明細

{% if not seizou.hide_money %}{% endif %} {% for row in rows %} {% if not seizou.hide_money %}{% endif %} {% endfor %}
行受注番号品目受領日受領数量単位単価金額受注の数出荷済み自社の答え
{{ row.line.line_no }} {{ row.order_line.order.order_no }}-{{ row.order_line.line_no }} {{ row.order_line.item }} {{ row.line.received_on|date:"Y-m-d" }} {{ row.line.qty|comma }} {{ row.line.unit }}{{ row.line.unit_price|yen }} / {{ row.line.price_unit_text }} {{ row.line.amount|yen }}{{ row.order_line.qty|comma }} {{ row.shipped|comma }} {% if row.answer %}{{ row.answer }}{% else %}—{% endif %}
{% if not seizou.hide_money and object.status != "cancelled" %}{% received_self_invoice_compare object as compare %}{% if compare %}

{% icon "yen" "size-5 text-base-content/70" %}請求書と比べる

仕入明細の確認済の金額 (税抜)
{{ compare.confirmed|yen }}
期間の重なる請求書の小計の合計
{{ compare.invoiced|yen }}
差
{% if compare.difference == 0 %}差はありません{% else %}{{ compare.difference|yen }}{% endif %}
{% if compare.invoices %} {% else %}

期間の重なる請求書はありません。

{% endif %} {% if compare.difference != 0 %}

仕入明細の期間 (受領日) と請求書の締め期間 (出荷日) がずれると差が出ます。明細ごとの数は上の表の「出荷済み」と比べてください。

{% endif %}
{% endif %}{% endif %}{% endblock %}