I've set up a number of systems like this. Depending on your requirements sometimes I store orders separate from invoices and sometimes I just change a status field. There are many ways to achieve the samegoal.