BF [ 2830154 ] currencyConvert(ORA) is not fetching the right ConversionType
https://sourceforge.net/tracker/?func=detail&aid=2830154&group_id=176962&atid=879332
This commit is contained in:
parent
323e667a45
commit
c27e82b821
|
@ -57,12 +57,15 @@ BEGIN
|
||||||
IF (p_ConversionType_ID IS NULL OR p_ConversionType_ID = 0) THEN
|
IF (p_ConversionType_ID IS NULL OR p_ConversionType_ID = 0) THEN
|
||||||
BEGIN
|
BEGIN
|
||||||
SELECT C_ConversionType_ID
|
SELECT C_ConversionType_ID
|
||||||
INTO v_ConversionType_ID
|
INTO v_ConversionType_ID
|
||||||
FROM C_ConversionType
|
FROM (
|
||||||
WHERE IsDefault='Y'
|
SELECT C_ConversionType_ID
|
||||||
AND AD_Client_ID IN (0,p_Client_ID)
|
FROM C_ConversionType
|
||||||
AND ROWNUM=1
|
WHERE IsDefault='Y'
|
||||||
ORDER BY AD_Client_ID DESC;
|
AND AD_Client_ID IN (0,p_Client_ID)
|
||||||
|
ORDER BY AD_Client_ID DESC
|
||||||
|
)
|
||||||
|
WHERE ROWNUM=1;
|
||||||
EXCEPTION WHEN OTHERS THEN
|
EXCEPTION WHEN OTHERS THEN
|
||||||
DBMS_OUTPUT.PUT_LINE('Conversion Type Not Found');
|
DBMS_OUTPUT.PUT_LINE('Conversion Type Not Found');
|
||||||
END;
|
END;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
-- Nothing to do for postgresql
|
Loading…
Reference in New Issue