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
|
||||
BEGIN
|
||||
SELECT C_ConversionType_ID
|
||||
INTO v_ConversionType_ID
|
||||
FROM C_ConversionType
|
||||
WHERE IsDefault='Y'
|
||||
AND AD_Client_ID IN (0,p_Client_ID)
|
||||
AND ROWNUM=1
|
||||
ORDER BY AD_Client_ID DESC;
|
||||
INTO v_ConversionType_ID
|
||||
FROM (
|
||||
SELECT C_ConversionType_ID
|
||||
FROM C_ConversionType
|
||||
WHERE IsDefault='Y'
|
||||
AND AD_Client_ID IN (0,p_Client_ID)
|
||||
ORDER BY AD_Client_ID DESC
|
||||
)
|
||||
WHERE ROWNUM=1;
|
||||
EXCEPTION WHEN OTHERS THEN
|
||||
DBMS_OUTPUT.PUT_LINE('Conversion Type Not Found');
|
||||
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