I agree. Obviously the u-boat gets credit for destroying the ship unless it gets towed to port and repaird.
I wasn't really looking for an answer; I was just using it as an excuse to post another interesting story I came across. My fault for not being more specific. Sorry about that.