370:
371: l_debug_info := 'Get open period name ';
372: print_debuginfo(l_module_name, l_debug_info,
373: G_LEVEL_PROCEDURE);
374: l_period_name := ap_utilities_pkg.get_current_gl_date(p_check_date,
375: l_inv_rec.org_id);
376:
377: IF l_period_name IS NULL THEN
378:
487: -- the value of the system parameter make_rate_mandatory_flag
488: -- --------------------------------------------------------
489:
490: l_check_rec.xrate_date := nvl(trunc(P_exchange_date),trunc(sysdate));
491: l_check_rec.xrate := ap_utilities_pkg.get_exchange_rate(
492: l_inv_rec.pmt_currency_code,
493: l_asp_rec.base_currency_code,
494: l_check_rec.xrate_type,
495: l_check_rec.xrate_date,
1222: IF ( l_inv_rec.Pmt_Currency_code <> l_asp_rec.base_currency_code ) THEN
1223:
1224: IF ( l_check_rec.xrate_type = 'User' ) THEN
1225:
1226: l_base_amount := ap_utilities_pkg.ap_round_currency(
1227: (l_amount*l_check_rec.xrate),
1228: l_asp_rec.base_currency_code);
1229:
1230: ELSE -- exchange rate is other than USER