452:
453:
454: --4552701, get le and payment attributes
455:
456: ap_utilities_pkg.get_Invoice_LE(
457: p_vendor_site_id => l_vendor_site_id,
458: p_inv_liab_ccid => l_accts_pay_ccid,
459: p_org_id => l_org_id,
460: p_le_id => l_le_id);
1369: debug_info);
1370: END IF;
1371:
1372:
1373: l_gl_period := ap_utilities_pkg.get_current_gl_date(l_inv_gl_date);
1374:
1375: If (l_gl_period is null) then
1376: ap_utilities_pkg.get_open_gl_date(
1377: l_inv_gl_date,
1372:
1373: l_gl_period := ap_utilities_pkg.get_current_gl_date(l_inv_gl_date);
1374:
1375: If (l_gl_period is null) then
1376: ap_utilities_pkg.get_open_gl_date(
1377: l_inv_gl_date,
1378: l_gl_period,
1379: l_gl_date);
1380: l_inv_gl_date := l_gl_date;
1506: debug_info);
1507: END IF;
1508:
1509:
1510: l_invoice_amount := ap_utilities_pkg.ap_round_currency ((p_quantity * p_price),
1511: p_invoice_curr);
1512:
1513: l_inv_base_amt := ap_utilities_pkg.ap_round_currency(
1514: nvl((l_invoice_amount * p_rcv_rate),0),
1509:
1510: l_invoice_amount := ap_utilities_pkg.ap_round_currency ((p_quantity * p_price),
1511: p_invoice_curr);
1512:
1513: l_inv_base_amt := ap_utilities_pkg.ap_round_currency(
1514: nvl((l_invoice_amount * p_rcv_rate),0),
1515: p_base_curr);
1516:
1517: -- Step k :