Let $A$ be an integral domain, $K$ its field of fractions. An $A$-submodule $M$ of $K$ is a fractional ideal of $A$ if $xM\subset A$ for some $x\neq 0$ in $A$.
Proposition 9.7. Let $A$ be a local domain. Then $A$ is a discrete valuation ring $\iff$ every non-zero fractional ideal of $A$ is invertible.
Proof. $\Rightarrow$. Let $x$ be a generator of the maximal ideal $m$ of $A$ , and let $M \neq 0$ be a fractional ideal. Then there exists $y\in A$ such that $yM\subset A$ :thus $yM$ is an integral ideal , say $(x^r)$, and therefore $M=(x^{r-s}) $ where $S=v(y)$ $\cdots$
What puzzle me is that $M=(x^{r-s})$ . We need to show that $M$ is an ideal. By definition of fractional ideal. $M$ is a $A$-module, thus an ideal of $A$ ($a\in A,m\in M, am\in M$). Every fractional ideal is an ideal of $A$ Is this right? I think $M$ could contain $A$ (thus no an ideal of $A$) or I have a misunderstanding of the definition of fractional ideal.
I also have no idea to prove $M=(x^{r-s})$. I want to show $v(M)=v(yMy^{-1})=v(x^r)-v(y)$, but there is no definition of $v(M)$.