More work on edit invoice functionality.