updating invoice merging