Fix > vs >= in gift card message

This commit is contained in:
Raphael Michel
2020-03-29 13:53:58 +02:00
parent 23f783c15c
commit 0928358396

View File

@@ -1107,7 +1107,7 @@ class GiftCardPayment(BasePaymentProvider):
cs['gift_cards'] = cs['gift_cards'] + [gc.pk]
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(
money_filter(remainder, self.event.currency)