{% if multiple_tos %}
Multiple users found. Use a more specific search term.
{% else %}
{% if tos %}
{% if not invoice %}
This user does not have an invoice
{% else %}
{% if invoice.unsold_lot_warning %}
{{ invoice.unsold_lot_warning }}
{% endif %}
{{ tos.name }} {{ invoice.invoice_summary_short }} {% include 'invoice_buttons.html' %}
{% include "auctions/partials/invoice_membership_renewal.html" with is_admin=True %}
{% if tos.is_club_member and tos.auction.uses_alternate_split %}{{ tos.auction.alternative_split_label|capfirst }}{% endif %}
{% if tos.memo %}Memo: {{ tos.memo }} {% endif %}
{% if tos.possible_duplicate %}Note: This user may be a duplicate, confirm that this is their only bidder number {% endif %}
{% if request.is_mobile_app and invoice.show_square_button and not invoice.reason_for_payment_not_available %}
{% comment %}
Inside the native app: deep-link to the on-device Tap to Pay screen (host must be "pay",
first path segment the invoice pk). Gated on the same request.is_mobile_app UA check that
hides the web navbar in base.html, plus invoice.show_square_button so the button only
appears when the seller's Square account is actually linked and authorized (matching the
Square QR check below and the create_mobile_payment seller/permission check). The
scan-a-QR-code flow doesn't apply on the device itself, so we hide the QR section below
and show only this native button in-app.
{% endcomment %}
Tap to Pay with card
{% endif %}
{% if not request.is_mobile_app %}
{% if paypal_qr_code_link or square_qr_code_link %}
{% if paypal_qr_code_link %}
{% qr_from_text paypal_qr_code_link size="L" image_format="png" %}
Scan this code to pay with PayPal
{% endif %}
{% if square_qr_code_link %}
{% qr_from_text square_qr_code_link size="L" image_format="png" %}
Scan this code to pay with Square
{% endif %}
{% endif %}
{% endif %}
View or adjust invoice
{% comment %} Print invoice needs the browser print dialog, which the app WebView has no UI for. {% endcomment %}
{% if not request.is_mobile_app %}
Print invoice
{% endif %}
{% endif %}
{% endif %}
{% endif %}