DBA Data[Home] [Help]

APPS.AP_R11_PREPAY_PKG dependencies on AP_R11_PREPAY_PKG

Line 1: PACKAGE BODY AP_R11_PREPAY_PKG AS

1: PACKAGE BODY AP_R11_PREPAY_PKG AS
2: /*$Header: apr11ppb.pls 120.10 2006/03/27 20:49:50 hchacko noship $*/
3: --
4: -- Declare Local procedures
5: --

Line 190: current_calling_sequence := 'AP_R11_PREPAY_PKG.ap_prepay<-'||X_calling_sequence;

186:
187: BEGIN
188: -- Update the calling sequence
189: --
190: current_calling_sequence := 'AP_R11_PREPAY_PKG.ap_prepay<-'||X_calling_sequence;
191:
192: /*---------------------------------------------------------------------------
193: * Step 1pi: Case p and i : for both Prepayment and Invoice:
194: * Call ap_prepay_get_info to get some parameters

Line 199: ap_r11_prepay_pkg.ap_prepay_get_info(

195: *--------------------------------------------------------------------------*/
196: P_gl_date := X_gl_date;
197: P_period_name := X_period_name;
198:
199: ap_r11_prepay_pkg.ap_prepay_get_info(
200: X_prepay_id,
201: X_invoice_id,
202: X_amount_apply,
203: X_user_id,

Line 240: ap_r11_prepay_pkg.appp_update_ap_invoices(

236: * as well
237: * (converse for Unapplication)
238: *
239: *--------------------------------------------------------------------------*/
240: ap_r11_prepay_pkg.appp_update_ap_invoices(
241: '',
242: X_prepay_id,
243: X_amount_apply,
244: P_prepay_curr_amount_apply,

Line 258: ap_r11_prepay_pkg.appp_insert_invoice_dist(

254: * Call appp_insert_invoice_dist:
255: * Create reversing ITEM distribution on the Prepayment, We presume dist line 1
256: * is item line. (converse for unapplication (amount_apply < 0) )
257: *--------------------------------------------------------------------------*/
258: ap_r11_prepay_pkg.appp_insert_invoice_dist(
259: X_invoice_id,
260: X_prepay_id,
261: P_dist_item_amount,
262: P_payment_cross_rate,

Line 283: ap_r11_prepay_pkg.appp_insert_invoice_dist(

279: * Create reversing TAX distribution on the Prepayment if applicable,
280: * we presume dist line 2 is tax line. (converse for unapplication)
281: *--------------------------------------------------------------------------*/
282: if (NVL(P_dist_tax_amount,0) <> 0) then
283: ap_r11_prepay_pkg.appp_insert_invoice_dist(
284: X_invoice_id,
285: X_prepay_id,
286: P_dist_tax_amount,
287: P_payment_cross_rate,

Line 307: ap_r11_prepay_pkg.appp_insert_payment_schedule(

303: * Call appp_insert_payment_schedule :
304: * Create additional paid Payment Schedule for the Prepayment.
305: * (converse for Unapplication)
306: *--------------------------------------------------------------------------*/
307: ap_r11_prepay_pkg.appp_insert_payment_schedule(
308: X_prepay_id,
309: X_amount_apply,
310: P_prepay_curr_amount_apply,
311: P_max_pay_num, /* IN/OUT parameter */

Line 328: ap_r11_prepay_pkg.appp_insert_invoice_payment(

324: * Call appp_insert_invoice_payment :
325: * Create new positive Invoice Payments for the Prepayment (converse
326: * for Unapplication)
327: *--------------------------------------------------------------------------*/
328: ap_r11_prepay_pkg.appp_insert_invoice_payment(
329: X_invoice_id,
330: X_prepay_id,
331: X_amount_apply,
332: P_prepay_curr_amount_apply,

Line 364: ap_r11_prepay_pkg.appp_update_ap_invoices(

360: * type payment distributions depends upon the payment_status_flag of the
361: * invoice. Since the next step also creates payment dists, we should
362: * first update the payment_status_flag on the invoice.
363: *--------------------------------------------------------------------------*/
364: ap_r11_prepay_pkg.appp_update_ap_invoices(
365: X_invoice_id,
366: '',
367: X_amount_apply,
368: P_prepay_curr_amount_apply,

Line 386: ap_r11_prepay_pkg.appp_update_payment_schedule(

382: * Invoice to reflect the effective payment (converse for Unapplication)
383: * 2. Insert a new line for ap_invoice_payment to reflect the effective
384: * payment amount.
385: *--------------------------------------------------------------------------*/
386: ap_r11_prepay_pkg.appp_update_payment_schedule(
387: X_invoice_id,
388: X_prepay_id,
389: X_amount_apply,
390: P_prepay_curr_amount_apply,

Line 418: ap_r11_prepay_pkg.appp_insert_invoice_prepay(

414: * 1. Update ap_invoice_prepays if there's a invoice_prepay line exit.
415: * 2. Delete record if unapply the prepayment.
416: * 3. Insert new line if there's no such record exist
417: ---------------------------------------------------------------------------*/
418: ap_r11_prepay_pkg.appp_insert_invoice_prepay(
419: X_invoice_id,
420: X_prepay_id,
421: X_amount_apply,
422: X_user_id,

Line 1401: AP_R11_PREPAY_PKG.appp_insert_invoice_payment(

1397: debug_info := 'Call appp_insert_invoice_payment , case 1';
1398: ----------------------------------------------------------------------
1399: -- Add a new ap_invoice_payment line to adjust the amount
1400: ----------------------------------------------------------------------
1401: AP_R11_PREPAY_PKG.appp_insert_invoice_payment(
1402: X_prepay_id,
1403: X_invoice_id,
1404: C_amount_apply_remaining,
1405: X_prepay_curr_amount_apply,

Line 1458: AP_R11_PREPAY_PKG.appp_insert_invoice_payment(

1454: if (X_amount_positive = 'Y') then
1455: -- Apply:
1456: -- Add a new ap_invoice_payment line to adjust the amount
1457: --
1458: AP_R11_PREPAY_PKG.appp_insert_invoice_payment(
1459: X_prepay_id,
1460: X_invoice_id,
1461: C_local_amount, /* Difference from above */
1462: X_prepay_curr_amount_apply,

Line 1484: AP_R11_PREPAY_PKG.appp_insert_invoice_payment(

1480: else
1481: -- Unapply:
1482: -- Add a new ap_invoice_payment line to adjust the amount
1483: --
1484: AP_R11_PREPAY_PKG.appp_insert_invoice_payment(
1485: X_prepay_id,
1486: X_invoice_id,
1487: (-1)*C_local_amount, /* Difference from above */
1488: X_prepay_curr_amount_apply,

Line 2038: END AP_R11_PREPAY_PKG;

2034:
2035: END app_update_inv_distributions;
2036:
2037:
2038: END AP_R11_PREPAY_PKG;