Discount Codes API / QR code scan issue

Hey, not sure if this is the right place to report

When scanning a voucher QR code with an item open and item notes field active, this would just dump in the voucher id into the notes filed instead of attaching voucher to sale.