Ensure xref is unique and that these fields are not NULL.
Merge pull request #187 from alphagov/cleanup-invoices-a-little

Ensure xref is unique and that these fields are not NULL