created invoice functionality from jobs page