{% if invoice.auction and invoice.auction.club and invoice.auction.club.membership_annual_fee %}
{% if invoice.auction.is_club_managed %}
{% if invoice.member_has_paypal_subscription %}
This member renews automatically through a PayPal subscription, so the membership fee isn't applied here.
{% else %}
Membership status: {{ invoice.membership_status_for_invoice }}
{% endif %}
{% if invoice.renewal_processed %}
Renewal already processed when this invoice was marked paid. Manual adjustment or refund is required if this needs to be undone.
{% endif %}
{% if is_admin and not invoice.renewal_processed %}
{% endif %}
{% endif %}
{% endif %}