mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Collapse gift card option when the gift card is not enough
This commit is contained in:
@@ -985,6 +985,7 @@ class GiftCardPayment(BasePaymentProvider):
|
||||
|
||||
remainder = cart['total'] - gc.value
|
||||
if remainder >= Decimal('0.00'):
|
||||
del cs['payment']
|
||||
messages.success(request, _("Your gift card has been applied, but {} still need to be paid. Please select a payment method.").format(
|
||||
money_filter(remainder, self.event.currency)
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user