DBA Data[Home] [Help]

APPS.AP_RCT_AMT_MATCH_PKG dependencies on AP_UTILITIES_PKG

Line 576: l_max_amount_to_recoup := ap_utilities_pkg.ap_round_currency(

572: l_debug_info := 'Calculate the maximum amount that can be recouped from this invoice line';
573:
574: l_line_amt_net_retainage := x_amount + nvl(l_retained_amount,0);
575:
576: l_max_amount_to_recoup := ap_utilities_pkg.ap_round_currency(
577: (x_amount * g_recoupment_rate / 100) ,g_invoice_currency_code);
578:
579: IF (l_line_amt_net_retainage < l_max_amount_to_recoup) THEN
580: l_amount_to_recoup := l_line_amt_net_retainage;

Line 772: g_line_base_amount := ap_utilities_pkg.ap_round_currency(

768: AND asp.set_of_books_id = fsp.set_of_books_id
769: AND ai.invoice_currency_code = fc.currency_code (+);
770:
771: IF (g_invoice_currency_code <> g_base_currency_code) THEN
772: g_line_base_amount := ap_utilities_pkg.ap_round_currency(
773: x_match_amount * g_exchange_rate,
774: g_base_currency_code);
775: END IF;
776:

Line 829: g_asset_book_type_code := Ap_Utilities_Pkg.Ledger_Asset_Book

825:
826: END IF;
827:
828: /* Bug 5572876 */
829: g_asset_book_type_code := Ap_Utilities_Pkg.Ledger_Asset_Book
830: (g_set_of_books_id);
831:
832: /*
833: BEGIN

Line 850: g_period_name := AP_UTILITIES_PKG.get_current_gl_date(g_accounting_date,

846: l_debug_info := 'select period for accounting date';
847:
848: --get_current_gl_date will return NULL if the date passed to it doesn't fall in a
849: --open period.
850: g_period_name := AP_UTILITIES_PKG.get_current_gl_date(g_accounting_date,
851: g_org_id);
852:
853: IF (g_period_name IS NULL) THEN
854:

Line 856: ap_utilities_pkg.get_open_gl_date(p_date => g_accounting_date,

852:
853: IF (g_period_name IS NULL) THEN
854:
855: --Get gl_period and Date from a future period for the accounting date
856: ap_utilities_pkg.get_open_gl_date(p_date => g_accounting_date,
857: p_period_name => g_period_name,
858: p_gl_date => g_accounting_date,
859: p_org_id => g_org_id);
860:

Line 1297: l_base_amount := ap_utilities_pkg.ap_round_currency(

1293:
1294: --Populate Base Amount
1295: --Need to populate the base amount for foreign currency invoices only.
1296: IF (g_exchange_rate IS NOT NULL) THEN
1297: l_base_amount := ap_utilities_pkg.ap_round_currency(
1298: x_dist_tab(i).amount * g_exchange_rate,
1299: g_base_currency_code);
1300: x_dist_tab(i).base_amount := l_base_amount;
1301:

Line 1335: IF (AP_UTILITIES_PKG.overlay_segments(

1331: g_overlay_dist_code_concat IS NOT NULL) THEN
1332:
1333: l_dist_ccid := nvl(x_dist_tab(i).dist_ccid,x_dist_tab(i).po_ccid);
1334:
1335: IF (AP_UTILITIES_PKG.overlay_segments(
1336: g_balancing_segment,
1337: g_cost_center_segment,
1338: g_account_segment,
1339: g_overlay_dist_code_concat,

Line 1985: AP_UTILITIES_PKG.Ap_Round_Currency(

1981: NULL, --def_acctg_number_of_periods
1982: NULL, --def_acctg_period_type
1983: G_SET_OF_BOOKS_ID, --set_of_books_id
1984: X_AMOUNT, --amount
1985: AP_UTILITIES_PKG.Ap_Round_Currency(
1986: NVL(X_AMOUNT, 0) * G_EXCHANGE_RATE,
1987: G_BASE_CURRENCY_CODE), --base_amount
1988: NULL, --rounding_amount
1989: X_QUANTITY_INVOICED, --quantity_invoiced

Line 2333: AP_UTILITIES_PKG.Ap_Round_Currency(

2329: NULL, --def_acctg_number_of_periods
2330: NULL, --def_acctg_period_type
2331: AIL.SET_OF_BOOKS_ID, --set_of_books_id
2332: X_AMOUNT, --amount
2333: AP_UTILITIES_PKG.Ap_Round_Currency(
2334: NVL(X_AMOUNT, 0) * G_EXCHANGE_RATE,
2335: G_BASE_CURRENCY_CODE), --base_amount
2336: NULL, --rounding_amount
2337: NULL, --quantity_invoiced

Line 3128: l_max_amount_to_recoup := ap_utilities_pkg.ap_round_currency(

3124: l_debug_info := 'Calculate the maximum amount that can be recouped from this invoice line';
3125:
3126: l_line_amt_net_retainage := x_correction_amount + nvl(l_retained_amount,0);
3127:
3128: l_max_amount_to_recoup := ap_utilities_pkg.ap_round_currency(
3129: (x_correction_amount * g_recoupment_rate / 100) ,g_invoice_currency_code);
3130:
3131: IF (l_line_amt_net_retainage < l_max_amount_to_recoup) THEN
3132: l_amount_to_recoup := l_line_amt_net_retainage;

Line 3329: x_corr_dist_tab(i).base_amount := ap_utilities_pkg.ap_round_currency(

3325: --Populating the base_amount column, after proration related rounding
3326: --has been done if it is a foreign currency invoice.
3327:
3328: IF (g_exchange_rate IS NOT NULL) THEN
3329: x_corr_dist_tab(i).base_amount := ap_utilities_pkg.ap_round_currency(
3330: x_corr_dist_tab(i).amount * g_exchange_rate,
3331: g_base_currency_code);
3332:
3333: l_sum_dist_base_amount := l_sum_dist_base_amount + x_corr_dist_tab(i).base_amount ;

Line 3680: AP_UTILITIES_PKG.Ap_Round_Currency(

3676: NULL, --def_acctg_number_of_periods
3677: NULL, --def_acctg_period_type
3678: g_set_of_books_id, --set_of_books_id
3679: x_amount, --amount
3680: AP_UTILITIES_PKG.Ap_Round_Currency(
3681: NVL(X_AMOUNT, 0) * G_EXCHANGE_RATE,
3682: G_BASE_CURRENCY_CODE), --base_amount
3683: NULL, --rounding_amount
3684: Null, --quantity_invoiced