probably should not allow blank ref_no's as this will not be good in the UI we use them to link to things.