fixes bug #9930 - Bloqueia a edição das formas de pagamento que possuem CVESISTEMA preenchido.

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@75975 d1611594-4594-4d17-8e1d-87c2c4800839
master
wilian 2017-11-01 18:30:23 +00:00
parent 53984bab2f
commit 2d887dd3a5
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,7 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'alter table FORMA_PAGO add constraint uniq_fp_cvesistema unique("CVESISTEMA")';
exception when column_exists then null;
end;

View File

@ -0,0 +1,7 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00001);
begin
execute immediate 'UPDATE FORMA_PAGO SET DESCPAGO = ''GERACAO OCD'', CVEPAGO = ''GO'', FECMODIF = sysdate WHERE FORMAPAGO_ID = 35';
exception when object_exists then null;
end;