You can't turn a prepayment invoice to temporary after making it permanent, but you can cancel and create a new one.
The classification of a prepayment invoice as permanent isnt reversible.
00153
Can I change a permanent prepayment invoice to temporary?