0010918: ESPEC01- Restrição Venda Internet por Valor

fixes bug#0010918
dev:Leo
qua:Wally

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@85919 d1611594-4594-4d17-8e1d-87c2c4800839
master
daniel.zauli 2018-10-04 18:00:13 +00:00
parent 86ef4be9f7
commit 5f1a0d7ccd
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,27 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate
'CREATE TABLE CONF_RESTRICAO_VENDAWEB
(CONFRESTRICAOVENDAWEB_ID NUMBER(7,0) NOT NULL ENABLE,
EMPRESA_ID NUMBER(7,0),
VALOR NUMBER(7,2),
ACTIVO NUMBER(1,0),
FECMODIF DATE,
USUARIO_ID NUMBER(7,0),
PRIMARY KEY (CONFRESTRICAOVENDAWEB_ID),
FOREIGN KEY (EMPRESA_ID)
REFERENCES EMPRESA (EMPRESA_ID) ENABLE
)';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate
'CREATE SEQUENCE CONF_RESTRICAO_VENDAWEB_SEQ MINVALUE 1 MAXVALUE 9999999 INCREMENT BY 1 START WITH 101 CACHE 20 NOORDER NOCYCLE';
exception when object_exists then null;
end;

View File

@ -0,0 +1,7 @@
declare
dup_val_on_index exception;
pragma exception_init (dup_val_on_index , -00001);
begin
execute immediate 'Insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID) values (FUNCION_SISTEMA_SEQ.nextval,''2'',''VDA > AUTORIZACAO > CONFIGURAR RESTRICAO DE CANAL DE VENDA EMPRESA VALOR MINIMO'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.ESQUEMAOPERACIONAL.MENU.CONFRESTRICAOCANALVENTAEMPRESAVALORMIN'',''1'',sysdate,''1'')';
exception when dup_val_on_index then null;
end;