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:
teo_sarca 2009-07-31 07:29:31 +00:00
parent 323e667a45
commit c27e82b821
3 changed files with 11 additions and 6 deletions

View File

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

View File

@ -0,0 +1 @@
-- Nothing to do for postgresql