DBA Data[Home] [Help]

APPS.FV_APPLY_CASH_RECEIPT dependencies on FV_AR_BATCHES

Line 513: p_BatchRec IN fv_ar_batches%ROWTYPE,

509: --* : required report format. *--
510: --****************************************************************************************--
511: PROCEDURE write_report_header
512: (
513: p_BatchRec IN fv_ar_batches%ROWTYPE,
514: p_ErrorCode OUT NOCOPY VARCHAR2,
515: p_ErrorDesc OUT NOCOPY VARCHAR2,
516: p_ErrorLoc OUT NOCOPY VARCHAR2
517: ) IS

Line 766: --* Parameters : p_BatchRec IN fv_ar_batches%ROWTYPE *--

762: --****************************************************************************************--
763: --* Name : insert_ar_batch *--
764: --* Type : Procedure *--
765: --* Purpose : This procedure inserts a record into the table ar_batches *--
766: --* Parameters : p_BatchRec IN fv_ar_batches%ROWTYPE *--
767: --* : p_ErrorCode OUT The Error Code *--
768: --* : p_ErrorDesc OUT The Error Description *--
769: --* : p_ErrorLoc OUT The Error Location *--
770: --* Global Vars : g_SUCCESS READ *--

Line 777: --* Logic : Copy the FV_AR_BATCHES record into AR_BATCHES record. *--

773: --* : debug_exit *--
774: --* : dump_ar_batch *--
775: --* : log_msg *--
776: --* Tables Used : ar_batches (VIEW) INSERT *--
777: --* Logic : Copy the FV_AR_BATCHES record into AR_BATCHES record. *--
778: --* : Call dump_ar_batch to display the AR_BATCHES record in debug mode *--
779: --* : Insert the AR_BATCHES record into the table ar_batches *--
780: --****************************************************************************************--
781: PROCEDURE insert_ar_batch

Line 783: p_BatchRec IN fv_ar_batches%ROWTYPE,

779: --* : Insert the AR_BATCHES record into the table ar_batches *--
780: --****************************************************************************************--
781: PROCEDURE insert_ar_batch
782: (
783: p_BatchRec IN fv_ar_batches%ROWTYPE,
784: p_ErrorCode OUT NOCOPY VARCHAR2,
785: p_ErrorDesc OUT NOCOPY VARCHAR2,
786: p_ErrorLoc OUT NOCOPY VARCHAR2
787: ) IS

Line 803: -- Copy the fv_ar_batches record into ar_batches record --

799: log_msg(l_module_name,'Creating Receipt Batch '||p_BatchRec.batch_name);
800:
801:
802: ----------------------------------------------------------------------
803: -- Copy the fv_ar_batches record into ar_batches record --
804: ----------------------------------------------------------------------
805:
806: l_ARBatchRec.batch_id := p_BatchRec.batch_id;
807: l_ARBatchRec.last_updated_by := p_BatchRec.last_updated_by;

Line 1670: --* : fv_ar_batches_all.

1666: --****************************************************************************************--
1667: --* Name : update_fv_batch_status *--
1668: --* Type : Procedure *--
1669: --* Purpose : This procedure is used to update the status of the table *--
1670: --* : fv_ar_batches_all.
1671: --* Parameters : p_BatchId IN The batch Id *--
1672: --* : p_Status IN The Status to which the table to be updated *--
1673: --* : p_ErrorCode OUT The Error Code *--
1674: --* : p_ErrorDesc OUT The Error Description *--

Line 1681: --* Tables Used : fv_ar_batches_all UPDATE *--

1677: --* Called from : main *--
1678: --* Calls : debug_msg *--
1679: --* : debug_init *--
1680: --* : debug_exit *--
1681: --* Tables Used : fv_ar_batches_all UPDATE *--
1682: --* Logic : Update the table fv_ar_batches_all with the status p_Status for the *--
1683: --* : batch_id p_BatchId *--
1684: --****************************************************************************************--
1685: PROCEDURE update_fv_batch_status

Line 1682: --* Logic : Update the table fv_ar_batches_all with the status p_Status for the *--

1678: --* Calls : debug_msg *--
1679: --* : debug_init *--
1680: --* : debug_exit *--
1681: --* Tables Used : fv_ar_batches_all UPDATE *--
1682: --* Logic : Update the table fv_ar_batches_all with the status p_Status for the *--
1683: --* : batch_id p_BatchId *--
1684: --****************************************************************************************--
1685: PROCEDURE update_fv_batch_status
1686: (

Line 1706: debug_msg (l_module_name, 'Updating table fv_ar_batches_all');

1702: debug_msg (l_module_name, 'p_BatchId = '||p_BatchId);
1703: debug_msg (l_module_name, 'p_Status = '||p_Status);
1704:
1705: BEGIN
1706: debug_msg (l_module_name, 'Updating table fv_ar_batches_all');
1707:
1708: ----------------------------------------------------------------------
1709: -- Update the table fv_ar_batches_all to the status p_Status for --
1710: -- batch_id p_BatchId --

Line 1709: -- Update the table fv_ar_batches_all to the status p_Status for --

1705: BEGIN
1706: debug_msg (l_module_name, 'Updating table fv_ar_batches_all');
1707:
1708: ----------------------------------------------------------------------
1709: -- Update the table fv_ar_batches_all to the status p_Status for --
1710: -- batch_id p_BatchId --
1711: ----------------------------------------------------------------------
1712: UPDATE fv_ar_batches_all
1713: SET transfer_status = p_status

Line 1712: UPDATE fv_ar_batches_all

1708: ----------------------------------------------------------------------
1709: -- Update the table fv_ar_batches_all to the status p_Status for --
1710: -- batch_id p_BatchId --
1711: ----------------------------------------------------------------------
1712: UPDATE fv_ar_batches_all
1713: SET transfer_status = p_status
1714: WHERE batch_id = p_BatchId;
1715:
1716: debug_msg (l_module_name, 'Updated '||SQL%ROWCOUNT||' rows.');

Line 1722: p_ErrorLoc := 'UPDATE fv_ar_batches_all';

1718: EXCEPTION
1719: WHEN OTHERS THEN
1720: p_ErrorCode := g_FAILURE;
1721: p_ErrorDesc := SQLERRM;
1722: p_ErrorLoc := 'UPDATE fv_ar_batches_all';
1723: error
1724: (
1725: p_error_type => p_ErrorCode,
1726: p_pgm => l_module_name,

Line 2664: --* Parameters : p_BatchRec IN The Complete record in fv_ar_batches for a batch_id*--

2660: --****************************************************************************************--
2661: --* Name : process_receipts *--
2662: --* Type : Procedure *--
2663: --* Purpose : This is the procedure which starts processing a receipt batch *--
2664: --* Parameters : p_BatchRec IN The Complete record in fv_ar_batches for a batch_id*--
2665: --* : p_ErrorCode OUT The Error Code *--
2666: --* : p_ErrorDesc OUT The Error Description *--
2667: --* : p_ErrorLoc OUT The Error Location *--
2668: --* Global Vars : g_SUCCESS READ *--

Line 2692: --* : 3. For each of the receipt in the batch fv_ar_batches do the *--

2688: --* : ra_cust_trx_types SELECT *--
2689: --* Logic : 1. Write the Batch Information into the output report. *--
2690: --* : 2. Insert the fv_ar_batch details into the table ar_batches by *--
2691: --* : calling the procedure insert_ar_batch *--
2692: --* : 3. For each of the receipt in the batch fv_ar_batches do the *--
2693: --* : following *--
2694: --* : 4. Initialize the receipt report variables *--
2695: --* : 5. If the invoice id is filled up, use the invoice and ignore the *--
2696: --* : customer details as the receipt is against the invoice, else the *--

Line 2709: p_BatchRec IN fv_ar_batches%ROWTYPE,

2705: --* :11. Write the output report for a receipt *--
2706: --****************************************************************************************--
2707: PROCEDURE process_receipts
2708: (
2709: p_BatchRec IN fv_ar_batches%ROWTYPE,
2710: p_ErrorCode OUT NOCOPY VARCHAR2,
2711: p_ErrorDesc OUT NOCOPY VARCHAR2,
2712: p_ErrorLoc OUT NOCOPY VARCHAR2
2713: ) IS

Line 3151: --* Tables Used : fv_ar_batches SELECT *--

3147: --* : debug_msg *--
3148: --* : debug_init *--
3149: --* : debug_exit *--
3150: --* : error *--
3151: --* Tables Used : fv_ar_batches SELECT *--
3152: --* Logic : 1. Given the batch name get the record from table fv_ar_batches *--
3153: --* : 2. Call process_receipts to Start Processing the receipts in the *--
3154: --* : batch. *--
3155: --* : 3. Call update_fv_batch_status to update the batch status *--

Line 3152: --* Logic : 1. Given the batch name get the record from table fv_ar_batches *--

3148: --* : debug_init *--
3149: --* : debug_exit *--
3150: --* : error *--
3151: --* Tables Used : fv_ar_batches SELECT *--
3152: --* Logic : 1. Given the batch name get the record from table fv_ar_batches *--
3153: --* : 2. Call process_receipts to Start Processing the receipts in the *--
3154: --* : batch. *--
3155: --* : 3. Call update_fv_batch_status to update the batch status *--
3156: --****************************************************************************************--

Line 3169: l_BatchRec fv_ar_batches%ROWTYPE;

3165: l_ErrorCode NUMBER;
3166: l_ErrorDesc VARCHAR2(1024);
3167: l_ErrorLoc VARCHAR2(1024);
3168:
3169: l_BatchRec fv_ar_batches%ROWTYPE;
3170: BEGIN
3171: l_ErrorCode := g_SUCCESS;
3172: l_ErrorDesc := '';
3173: l_ErrorLoc := '';

Line 3185: -- Get the batch details from fv_ar_batches given the batch name

3181: debug_msg (l_module_name, 'p_batch_name = '||p_batch_name);
3182: log_msg (l_module_name,'p_batch_name = '||p_batch_name);
3183:
3184: ----------------------------------------------------------------------
3185: -- Get the batch details from fv_ar_batches given the batch name
3186: -- If there is no data found then it is an error.
3187: ----------------------------------------------------------------------
3188: IF (l_ErrorCode = g_SUCCESS) THEN
3189: BEGIN

Line 3193: FROM fv_ar_batches fab

3189: BEGIN
3190: debug_msg (l_module_name, 'Getting the Batch Details');
3191: SELECT *
3192: INTO l_BatchRec
3193: FROM fv_ar_batches fab
3194: WHERE batch_name = p_batch_name;
3195: EXCEPTION
3196: WHEN NO_DATA_FOUND THEN
3197: l_ErrorCode := g_FAILURE;

Line 3199: l_ErrorLoc := l_module_name || ':' || 'SELECT fv_ar_batches';

3195: EXCEPTION
3196: WHEN NO_DATA_FOUND THEN
3197: l_ErrorCode := g_FAILURE;
3198: l_ErrorDesc := 'No Batch with name <'||p_batch_name||'> Exists.';
3199: l_ErrorLoc := l_module_name || ':' || 'SELECT fv_ar_batches';
3200: error
3201: (
3202: p_error_type => l_ErrorCode,
3203: p_pgm => l_module_name,

Line 3211: l_ErrorLoc := l_module_name || ':' || 'SELECT fv_ar_batches';

3207: debug_msg (l_module_name, 'No Data Found for the batch <'||p_batch_name);
3208: WHEN OTHERS THEN
3209: l_ErrorCode := g_FAILURE;
3210: l_ErrorDesc := SQLERRM;
3211: l_ErrorLoc := l_module_name || ':' || 'SELECT fv_ar_batches';
3212: error
3213: (
3214: p_error_type => l_ErrorCode,
3215: p_pgm => l_module_name,