One guy disconnected from a battle with me, and I took the loss. Another time a different person did the same and I took the win. This is for rating battles. It is very annoying when your are definetly about to win and then they disconnect. I think it might be that the higher ranking trainer takes the win, but IDK.
The person who disconnects always loses. If you are losing points from "their disconnect", then you were the one who disconnected.
source