
/*------ ATD 451244 ------*/
IF NOT EXISTS (SELECT 1 FROM DOCDEORIGEM WHERE OID = 9)
	INSERT INTO DOCDEORIGEM (RSITUACAO, RREPRESENTANTE, RFORNECEDOR, RFORMADEPAGAR, RTPO, RMOEDA2, RMOEDA1, RDESTINATARIO, REMITENTE, RTIPO, RCLIENTE, RENDERECO, CHEGADA, EMISSAO, SERIE, FORMULA, VALORNAMOEDA2, VALORNAMOEDA1, DIRETO, STATUSEMISSAO, CODIGOBARRA, OID, VALORDEDUCAO, PROGRAMACAO, NFELETRONICA, RREVENDA) 
	VALUES (7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, '19000101', '19000101', 'Diversos', NULL, 0.00, 0.00, 0, NULL, NULL, 9, NULL,NULL, NULL, 7)
GO