Add support for updating (closing) an invoice