To convert a purchase invoice into a sales invoice, you may go to purchases section >> click on more (3 dots) >> click on convert >> convert to sales.