In the invoice page create a dataview with the contract and place the references inside that dataview. Do not forget to do a commit in the on change microflow of the reference.
Regards,
Ronald
[EDIT] You can let Mendix fill the dataview for you (then you have the standard layout), but most of the time you leave it empty so you can design your own form there. Choose the reference selector and place that one in the dataview. The commit is needed if you want to save the data. Since this is a dataview within another object the save button on the main page would just save that object and not the changed objects in the dataview. So these you have to commit yourself.