From "Pos Invoice" how to create "Sales Return"

from Delivry Note we create “Sales Return” and that quantity of item added to source warehouse and stock updated same functionality i want to apply on “Pos Invoice”

how i can do?
Anyone have solution?