As far as I understand, and also from experience, the reservation will be in the name of the person who owns the PC number, if you add a PC number, or change it, the name will also change. Your friend could just have given them the number when he checked out and told them that it's the "the person I've been staying with here"