fixed bug #8030 - Correção em geração OCD onde não gerava o registro de caja referente ao cancelamento por dinheiro.

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@61194 d1611594-4594-4d17-8e1d-87c2c4800839
master
thiago 2016-10-05 13:09:09 +00:00
parent 8e61f94f6a
commit e54741c294
1 changed files with 11 additions and 0 deletions

View File

@ -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;