git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@69359 d1611594-4594-4d17-8e1d-87c2c4800839
master
edgar 2017-05-26 20:00:13 +00:00
parent 26430125af
commit 3a36961dba
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
CREATE OR REPLACE FUNCTION "FN_ARREDONDAMENTO_TARIFA"(pTarifa IN NUMBER, create or replace FUNCTION "FN_ARREDONDAMENTO_TARIFA"(pTarifa IN NUMBER,
pOrgaoConcedenteId IN NUMBER, pOrgaoConcedenteId IN NUMBER,
pImporteSeguro IN NUMBER, pImporteSeguro IN NUMBER,
pImporteTaxaEmbarque IN NUMBER, pImporteTaxaEmbarque IN NUMBER,
@ -134,7 +134,7 @@ CREATE OR REPLACE FUNCTION "FN_ARREDONDAMENTO_TARIFA"(pTarifa IN NU
END IF; END IF;
END IF; END IF;
IF pOrgaoConcedenteId= 22 IF pOrgaoConcedenteId = 22
THEN THEN
lStrPrecoTotal := to_char(lPrecoTotal, '99999.9999'); lStrPrecoTotal := to_char(lPrecoTotal, '99999.9999');
lStrAntePenlultimoNumero := substr(lStrPrecoTotal, -4, 1); lStrAntePenlultimoNumero := substr(lStrPrecoTotal, -4, 1);
@ -153,7 +153,7 @@ CREATE OR REPLACE FUNCTION "FN_ARREDONDAMENTO_TARIFA"(pTarifa IN NU
IF lTresUltimos BETWEEN 755 AND 999 IF lTresUltimos BETWEEN 755 AND 999
THEN THEN
lPrecoTotallArredondado := lPrecoTotallArredondado :=
to_number(lStrParteInteira || '.' || lStrAntePenlultimoNumero || '000', '99999.999') + 0.1; to_number(lStrParteInteira || '.' || lStrAntePenlultimoNumero || '000', '99999.9999') + 0.1;
END IF; END IF;
END IF; END IF;