Below are code pieces of a Go program that uses GORM to perform operations within a transaction on the store.db SQLite database that has the following schema:
Your task is to arrange the pieces of code in the correct order to first create an Invoice record within the transaction and then create an Order record tied to an InvoiceID.