From a4c342a9dafd5366620122b3ce99d773d6ec3b64 Mon Sep 17 00:00:00 2001 From: valdir Date: Tue, 11 Feb 2020 20:43:40 +0000 Subject: [PATCH] 0016537: Troco Simples - Pagamento via carteira Digital Troco Simples bug#16537 dev:fred qua:junia Parte de relatorio de estorno do troco simples na ADM git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@100149 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20200211_1124__mantis16537.sql | 14 ++++++++++++++ .../migration/V20200211_1124__mantis16537.sql | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 src/db/migration/V20200211_1124__mantis16537.sql create mode 100644 src/db/postgresql/migration/V20200211_1124__mantis16537.sql diff --git a/src/db/migration/V20200211_1124__mantis16537.sql b/src/db/migration/V20200211_1124__mantis16537.sql new file mode 100644 index 000000000..1dddb9169 --- /dev/null +++ b/src/db/migration/V20200211_1124__mantis16537.sql @@ -0,0 +1,14 @@ +declare + dup_val_on_index exception; + except_02291 exception; + + pragma exception_init (dup_val_on_index , -00001); + pragma exception_init (except_02291 , -02291); +begin + execute immediate 'Insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID) + values (FUNCION_SISTEMA_SEQ.nextVal ,''2'',''ADM > ESQUEMA_OPERACIONAL > RELATORIO_ESTORNO_TROCO_SIMPLES'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.ESQUEMAOPERACIONAL.MENU.RELATORIOESTORNOTROCOSIMPLES'',''1'',to_date(''11/02/20'',''DD/MM/RR''),null)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20200211_1124__mantis16537.sql b/src/db/postgresql/migration/V20200211_1124__mantis16537.sql new file mode 100644 index 000000000..5f04f381b --- /dev/null +++ b/src/db/postgresql/migration/V20200211_1124__mantis16537.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + Insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID) + values (FUNCION_SISTEMA_SEQ.nextVal ,'2','ADM > ESQUEMA_OPERACIONAL > RELATORIO_ESTORNO_TROCO_SIMPLES', + 'COM.RJCONSULTORES.ADMINISTRACION.GUI.ESQUEMAOPERACIONAL.MENU.RELATORIOESTORNOTROCOSIMPLES','1',to_date('11/02/20','DD/MM/RR'),null); +END +$$; \ No newline at end of file