172: ,p_precision IN NUMBER DEFAULT NULL
173: ,p_currency_code IN VARCHAR2 DEFAULT NULL
174: )
175: RETURN VARCHAR2 IS
176: v_currency_code gl_sets_of_books.currency_code%TYPE;
177: v_formatted_number VARCHAR2 (100);
178: v_format_mask VARCHAR2 (100);
179: v_field_length NUMBER := 20;
180: v_min_acct_unit NUMBER;
233: FUNCTION get_amount_precision (
234: p_currency_code IN VARCHAR2 DEFAULT NULL
235: )
236: RETURN NUMBER IS
237: v_currency_code gl_sets_of_books.currency_code%TYPE;
238: v_precision NUMBER;
239: v_ext_precision NUMBER;
240: v_min_acct_unit NUMBER;
241: BEGIN
5128: v_payment_term_id pn_payment_terms.payment_term_id%TYPE;
5129: v_freq_divisor NUMBER;
5130: v_converted_amount NUMBER;
5131: v_actual_amount pn_payment_terms.actual_amount%TYPE;
5132: v_gl_set_of_books_id gl_sets_of_books.set_of_books_id%TYPE;
5133: v_expense_account_id pn_lease_details.expense_account_id%TYPE;
5134: v_receivable_account_id pn_lease_details.receivable_account_id%TYPE;
5135: v_account_class pn_distributions.account_class%TYPE;
5136: v_payment_end_date DATE;