adds invoice relationship methods
fix merge conflicts from invoice branch