Fix redemption of multiple gift cards

This commit is contained in:
Raphael Michel
2020-09-18 18:20:08 +02:00
parent af2b4ebb4b
commit 59655dca82
3 changed files with 42 additions and 4 deletions

View File

@@ -1134,7 +1134,7 @@ class GiftCardPayment(BasePaymentProvider):
cart['raw']
)
total += sum([f.value for f in fees])
remainder = total - gc.value
remainder = total
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(