Add functions for update invoice