That barcode policy makes perfect sense for exactly this reason. It's unfortunate charities even have to think about preventing returns, but clearly somebody always finds a way to turn generosity into store credit