Do not ask people to enter an address if they can't

This commit is contained in:
Raphael Michel
2022-10-25 09:23:46 +02:00
parent b4a7369642
commit 4146437380

View File

@@ -265,7 +265,7 @@
<div class="alert alert-info">
{% trans "You need to select a payment method above before you can request an invoice." %}
</div>
{% elif invoice_address_asked and order.invoice_address.is_empty %}
{% elif invoice_address_asked and order.invoice_address.is_empty and order.can_modify_answers %}
<a href="{% eventurl event "presale:event.order.modify" secret=order.secret order=order.code %}?generate_invoice=true"
class="btn btn-default">
{% trans "Request invoice" %}