added logging for invoice update