{% load qr_code %}
{% 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 %} {% 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. The label and the missing icon are both fixed by Apple's Tap to Pay on iPhone review guide, not by taste: * 5.4 -- the label must be one of the guide's localized strings. In English that is "Tap to Pay on iPhone" or "Tap to Pay", nothing else. "Tap to Pay on iPhone" is iPhone-only wording, so Android gets the short form. * 5.5 -- if the button carries an icon it must be SF Symbols' wave.3.right.circle(.fill). A Bootstrap credit-card glyph is not that, and the marketing rules separately forbid drawing our own Tap to Pay iconography, so there is no substitute glyph to reach for. The requirement is conditional on using an icon at all, so no icon means it does not apply -- which is also what the app does (see tapToPaySymbolAsset in the Flutter app). 5.2 also asks that this be reachable without scrolling and, where there are several payment options, sit at the top of the list -- hence its position above the PayPal and Square QR block, which is hidden in-app anyway. {% endcomment %} {% if request.is_ios_app %}Tap to Pay on iPhone{% else %}Tap to Pay{% endif %} {% endif %} {% if not request.is_mobile_app %} {% if paypal_qr_code_link or square_qr_code_link %}
{% if paypal_qr_code_link %} {% endif %} {% if square_qr_code_link %} {% 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 %}