Professional Documents
Culture Documents
BEGIN
SELECT currency_code
INTO v_currency_code
FROM fnd_currencies
WHERE currency_code = trim(i.currency_code);
EXCEPTION
WHEN OTHERS
THEN
v_flag := 'E';
v_err_messege :=
v_err_messege || 'Currency Code is Not Existing \';
END;
IF (i.DEBIT_AMT IS NULL) AND (i.CREDIT_AMT IS NOT NULL)
OR ((i.DEBIT_AMT IS NOT NULL) AND i.CREDIT_AMT IS NULL)
THEN
NULL;
ELSE
v_flag := 'E';
v_err_messege :=
v_err_messege || 'Enter Either Debit Balance Or Credit Balance \';
END IF;
-- IF (i.accounted_dr IS NULL) AND (i.accounted_cr IS NOT NULL)
-- OR ((i.accounted_dr IS NOT NULL) AND i.accounted_cr IS NULL)
-- THEN
-- NULL;
-- ELSE
-- v_flag := 'E';
-- v_err_messege :=
-- v_err_messege || 'Enter Either Accounted Debit Balance Or Credit B
alance \';
-- END IF;
fnd_file.put_line(fnd_file.log,'V_FLAG'||': '||v_flag);
IF v_flag <>'E'
THEN
begin