Quote conversion

Quote conversion

How do I make the system change the quote status when I convert it to a sales order and then into a invoice?