teamforus / forus

Platform voor de uitgifte van sociale regelingen
https://forus.io
GNU Affero General Public License v3.0
9 stars 3 forks source link

Unassigned vouchers scanning results in server error #2326

Closed maxvisser closed 3 years ago

maxvisser commented 3 years ago

Fix from master

Main asssignee: @

Context/goal:

Seems that there is an issue with scanning unassigned vouchers. If I scan an unassigned voucher on master with Me-debug I get a server error. The transaction still happens though.

Path to reproduce:

  1. Create a voucher through voucher generator (activation code)
  2. Activate voucher through voucher generator
  3. Scan QR-code using Me-debug
  4. Fill in amount lower then maximum budget.
  5. Server error happens here

To test that it only happens with unassigned voucher you can after this assign it to an e-mail and it works again as intended.