Do not create duplicate memberships on order changes (Z#23163336) (#4408)

This commit is contained in:
Raphael Michel
2024-08-21 17:30:42 +02:00
committed by GitHub
parent eb2ad48089
commit b96374fcf6
4 changed files with 46 additions and 3 deletions

View File

@@ -151,6 +151,12 @@
</div>
<div class="col-sm-4">
{% bootstrap_field position.form.itemvar layout='inline' %}
{% if position.granted_memberships.all %}
<span class="text-muted">
<span class="fa fa-warning text-warning" aria-hidden="true"></span>
{% trans "The sale of this position created a membership. Changing the product here will not affect the membership. Memberships can be managed in the customer account." %}
</span>
{% endif %}
</div>
</div>
@@ -254,6 +260,12 @@
{% trans "" %}
</div>
{% bootstrap_field position.form.valid_until layout='inline' %}
{% if position.granted_memberships.all %}
<span class="text-muted">
<span class="fa fa-warning text-warning" aria-hidden="true"></span>
{% trans "The sale of this position created a membership. Changing the validity of the ticket here will not affect the membership. Memberships can be managed in the customer account." %}
</span>
{% endif %}
</div>
</div>