Invoicing [PD-870]

Ensures that invoice emails remain static and that invoice ids provided to the user are unique.

All tests pass.