DBA Data[Home] [Help]

APPS.AR_INVOICE_TABLE_HANDLER dependencies on AR_INVOICE_API_PUB

Line 95: ar_invoice_api_pub.g_api_outputs.batch_id := p_batch_id;

91: THEN
92: return;
93: END IF;
94:
95: ar_invoice_api_pub.g_api_outputs.batch_id := p_batch_id;
96:
97: IF pg_debug = 'Y'
98: THEN
99: ar_invoice_utils.debug ('Before calling AR_TRX_BULK_PROCESS_HEADER.insert_row (-)' );

Line 197: WHERE customer_trx_id = AR_INVOICE_API_PUB.g_customer_trx_id; -- 16203156

193: x_return_status := FND_API.G_RET_STS_SUCCESS;
194:
195: UPDATE ar_trx_salescredits_gt
196: SET request_id = -(p_batch_id)
197: WHERE customer_trx_id = AR_INVOICE_API_PUB.g_customer_trx_id; -- 16203156
198:
199: AR_TRX_BULK_PROCESS_SALESCR.INSERT_ROW (
200: p_trx_salescredit_id => p_trx_salescredit_id,
201: x_errmsg => x_errmsg,

Line 224: p_batch_source_rec IN AR_INVOICE_API_PUB.batch_source_rec_type,

220:
221: PROCEDURE create_batch(
222: p_trx_system_parameters_rec IN AR_INVOICE_DEFAULT_PVT.trx_system_parameters_rec_type,
223: p_trx_profile_rec IN AR_INVOICE_DEFAULT_PVT.trx_profile_rec_type,
224: p_batch_source_rec IN AR_INVOICE_API_PUB.batch_source_rec_type,
225: p_batch_id OUT NOCOPY NUMBER,
226: x_errmsg OUT NOCOPY VARCHAR2,
227: x_return_status OUT NOCOPY VARCHAR2 ) IS
228:

Line 444: p_batch_source_rec IN AR_INVOICE_API_PUB.batch_source_rec_type,

440:
441: PROCEDURE INSERT_ROW(
442: p_trx_system_parameters_rec IN AR_INVOICE_DEFAULT_PVT.trx_system_parameters_rec_type,
443: p_trx_profile_rec IN AR_INVOICE_DEFAULT_PVT.trx_profile_rec_type,
444: p_batch_source_rec IN AR_INVOICE_API_PUB.batch_source_rec_type,
445: x_errmsg OUT NOCOPY VARCHAR2,
446: x_return_status OUT NOCOPY VARCHAR2) AS
447:
448: l_cust_trx_id NUMBER;

Line 565: AR_INVOICE_API_PUB.g_customer_trx_id := ar_trx_header_rec.customer_trx_id;

561:
562: -- populate g_customer_trx_id. This is out parameter
563: -- in case the API is called for a singel invoice. Otherwise
564: -- the latest value will be stored in this global value.
565: AR_INVOICE_API_PUB.g_customer_trx_id := ar_trx_header_rec.customer_trx_id;
566:
567: IF pg_debug = 'Y'
568: THEN
569: ar_invoice_utils.debug ('In Header Loop' );

Line 592: IF ar_invoice_api_pub.g_dist_exist

588: ar_invoice_utils.debug ('calling auto accounting (+)' );
589: END IF;
590:
591: /* 5921925 - Do not call insert unless there were dists rows */
592: IF ar_invoice_api_pub.g_dist_exist
593: THEN
594: BEGIN
595: FOR ar_trx_dist_rec IN ar_trx_dist_c
596: LOOP

Line 674: IF NOT ar_invoice_api_pub.g_sc_exist

670: -- before defaulting check whether user has passed
671: -- sales credit or not. If user has passed sales credit
672: -- then don't default the sales credit.
673:
674: IF NOT ar_invoice_api_pub.g_sc_exist
675: THEN
676: generate_default_salescredit(
677: p_cust_trx_id => l_cust_trx_id,
678: p_cust_trx_line_id => l_customer_trx_line_id,

Line 787: IF ar_invoice_api_pub.g_dist_exist

783: GOTO main_loop;
784: END IF;
785:
786: -- call distributions
787: IF ar_invoice_api_pub.g_dist_exist
788: THEN
789: INSERT_TRX_DIST( p_trx_dist_id => null,
790: p_batch_id => l_batch_id,
791: x_errmsg => x_errmsg,

Line 800: IF ar_invoice_api_pub.g_sc_exist

796: return;
797: END IF;
798: END IF;
799:
800: IF ar_invoice_api_pub.g_sc_exist
801: THEN
802: INSERT_TRX_SALESCR ( p_trx_salescredit_id => null,
803: p_batch_id => l_batch_id,
804: x_errmsg => x_errmsg,