UPDATE TIPOOPERAC
SET IDOPERDEVONF = 'S',
    IDNFORIGOBRI = 'S',
    IDUTLLISTORI = 'N'
WHERE IDENTRSAIDOP = 'S' AND
      CDTIPOOPER   = '06'
GO

UPDATE TIPOOPERAC
SET IDOPERDEVONF = 'S',
    IDNFORIGOBRI = 'N',
    IDUTLLISTORI = 'N'
WHERE IDENTRSAIDOP = 'E' AND
      CDTIPOOPER   = '13'
GO

UPDATE TIPOOPERAC
SET IDATUESTTPOP = 'N'
WHERE CDTIPOOPER   = '05'
GO
