@@ -117,7 +143,7 @@
{% available_credit as credit %}
{% if credit %}
-
+
Credit
You have ${{ credit }} leftover from refunded invoices. This credit will be automatically applied to new invoices. Contact the conference organisers if you wish to arrange a refund to your original payment source.
diff --git a/pinaxcon/templatetags/lca2019_tags.py b/pinaxcon/templatetags/lca2019_tags.py
index c82bf67d..d971373a 100644
--- a/pinaxcon/templatetags/lca2019_tags.py
+++ b/pinaxcon/templatetags/lca2019_tags.py
@@ -48,6 +48,11 @@ def any_is_void(invoices):
return False
+@register.filter
+def contains_items_not_in(list1, list2):
+ return len(set(list1).difference(list2)) > 0
+
+
@register.filter
def listlookup(lookup, target):
try:
diff --git a/vendor/registrasion/registrasion/reporting/views.py b/vendor/registrasion/registrasion/reporting/views.py
index 5f0d867f..88e8cbbc 100644
--- a/vendor/registrasion/registrasion/reporting/views.py
+++ b/vendor/registrasion/registrasion/reporting/views.py
@@ -562,9 +562,13 @@ def attendee(request, form, user_id=None):
reports = []
- profile_data = []
try:
attendee = people.Attendee.objects.get(user__id=user_id)
+ except people.DoesNotExist:
+ return reports
+
+ profile_data = []
+ try:
name = attendee.attendeeprofilebase.attendee_name()
profile = people.AttendeeProfileBase.objects.get_subclass(
diff --git a/vendor/registrasion/registrasion/views.py b/vendor/registrasion/registrasion/views.py
index f92a6dbf..af47185d 100644
--- a/vendor/registrasion/registrasion/views.py
+++ b/vendor/registrasion/registrasion/views.py
@@ -1077,6 +1077,7 @@ def amend_registration(request, user_id):
"cancelled": ic.items_released(),
"form": formset,
"voucher_form": voucher_form,
+ "vouchers": current_cart.cart.vouchers.all(),
}
return render(request, "registrasion/amend_registration.html", data)