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-87c2c4800839master
parent
53984bab2f
commit
2d887dd3a5
|
@ -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;
|
|
@ -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;
|
Loading…
Reference in New Issue