Let $\Omega \subset \mathbb{C}$ be a region( open + connected), and suppose $p dx + q dy$ is a locally exact differential in $\Omega$ ($p,q$ real-valued and continuous, say), suppose $f(z) = \int_{\gamma_{z_0 \rightarrow z}} du + i( p dx + q dy)$, where $\gamma_{z_0 \rightarrow z}$ is any path from $z_0$ to $z$, and assume $f$ is multi-valued in the sense that for any two such paths, the difference of that integral is $2 \pi i k$ for some integer $k$ depending on the paths.
Moreover , suppose $u$ is a harmonic function in $\Omega$, such that locally, $du + i (pdx+qdy)$ is of the form $g dz$…