mirror of
https://github.com/pretix/pretix.git
synced 2026-08-27 13:24:41 +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
|
remainder = cart['total'] - gc.value
|
||||||
if remainder >= Decimal('0.00'):
|
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(
|
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)
|
money_filter(remainder, self.event.currency)
|
||||||
))
|
))
|
||||||
|
|||||||
Reference in New Issue
Block a user