add invoice state graph