{% load seizou_icons seizou_tags %} {# 入金の取消の確かめのカード (全体の画面 billing/payment_cancel.html と小窓の両方が include する。開発の記録 docs/nights/20261105/N158b.md)。 #} {# 請求書の外で受け取った入金 (請求書が空・出荷を指す。作者の決め) は、出荷の番号で黄の字を書き、「キャンセル」の戻り先を出荷の詳細にする。 #} {# 金額の閲覧の無い人には、この画面は開いた時点で断る (本人の決め 11-12 07:2x)。seizou.hide_money の分かれは、直に送って断られた時と欄の誤りの描き直しで、金額と単価を見せないための守りとして残す (本人の決め 11-12 14:0x。消さない。試験 = tests/test_money_forms_hide_on_post.py)。 #} {% if object.invoice_id %} {% else %} {% endif %} {# 「キャンセル」: 入金には一覧の URL が無く、?next= が無い全体の画面では土台の cancel_url が空になる。そのときは、その入金の請求書の詳細の入金の枠へ戻す (URL を直に開いたとき・Cmd を押して新しいタブで開いたとき。作者の決め)。小窓は今のまま「キャンセル」を出さない。 #} {% if in_modal or cancel_url %}{% include "core/_form_card.html" %}{% elif not object.invoice_id %}{% url 'shipping:shipment_detail' object.shipment_id as shipment_url %}{% include "core/_form_card.html" with cancel_url=shipment_url %}{% else %}{% url 'billing:invoice_detail' object.invoice_id as invoice_url %}{% include "core/_form_card.html" with cancel_url=invoice_url|add:"#payments" %}{% endif %}