From e54741c2942a4969e912d3c54eb221b23285d6e3 Mon Sep 17 00:00:00 2001 From: thiago Date: Wed, 5 Oct 2016 13:09:09 +0000 Subject: [PATCH] =?UTF-8?q?fixed=20bug=20#8030=20-=20Corre=C3=A7=C3=A3o=20?= =?UTF-8?q?em=20gera=C3=A7=C3=A3o=20OCD=20onde=20n=C3=A3o=20gerava=20o=20r?= =?UTF-8?q?egistro=20de=20caja=20referente=20ao=20cancelamento=20por=20din?= =?UTF-8?q?heiro.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@61194 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20160929_2027__mantis8030.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/db/migration/V20160929_2027__mantis8030.sql diff --git a/src/db/migration/V20160929_2027__mantis8030.sql b/src/db/migration/V20160929_2027__mantis8030.sql new file mode 100644 index 000000000..8ab28958d --- /dev/null +++ b/src/db/migration/V20160929_2027__mantis8030.sql @@ -0,0 +1,11 @@ +declare +col_count integer; +begin + select count(*) + into col_count from FORMA_PAGO + where FORMAPAGO_ID = 35; + if col_count = 0 then + Insert into FORMA_PAGO (FORMAPAGO_ID,DESCPAGO,EQUIVALENCIA_ID,ACTIVO,FECMODIF,USUARIO_ID,INDOPERACION,CVEPAGO,IMPFISCAL,INDCONFERENCIAFISICACOMISSAO) values ('35','GERACAO OCD',null,'1',sysdate,'1',null,'GO',null,'0'); + commit; + end if; +end; \ No newline at end of file