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
|
@ -58,11 +58,14 @@ BEGIN
|
||||||
BEGIN
|
BEGIN
|
||||||
SELECT C_ConversionType_ID
|
SELECT C_ConversionType_ID
|
||||||
INTO v_ConversionType_ID
|
INTO v_ConversionType_ID
|
||||||
|
FROM (
|
||||||
|
SELECT C_ConversionType_ID
|
||||||
FROM C_ConversionType
|
FROM C_ConversionType
|
||||||
WHERE IsDefault='Y'
|
WHERE IsDefault='Y'
|
||||||
AND AD_Client_ID IN (0,p_Client_ID)
|
AND AD_Client_ID IN (0,p_Client_ID)
|
||||||
AND ROWNUM=1
|
ORDER BY AD_Client_ID DESC
|
||||||
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