24: /*=======================================================================
25: | PUBLIC Procedure refund_prepayment_wrapper
26: |
27: | DESCRIPTION
28: | This wrapper is same as ar_prepayments except this accepts 1 additional
29: | parameter p_bank_account_id : This paramter along with p_receipt_method_id
30: | if having a value populate the global variables in
31: | AR_PREPAYMENTS.Refund_Prepayment
32: | ----------------------------------------
27: | DESCRIPTION
28: | This wrapper is same as ar_prepayments except this accepts 1 additional
29: | parameter p_bank_account_id : This paramter along with p_receipt_method_id
30: | if having a value populate the global variables in
31: | AR_PREPAYMENTS.Refund_Prepayment
32: | ----------------------------------------
33: |
34: | PSEUDO CODE/LOGIC
35: |
152: ---Bug 3605509 The global variables for Prepayments API should
153: --- be initialized even if the passed parameters p_receipt_method_id
154: --- and p_bank_account_id are null
155:
156: AR_PREPAYMENTS.G_REFUND_RECEIPT_METHOD_ID := p_receipt_method_id;
157: AR_PREPAYMENTS.G_REFUND_BANK_ACCOUNT_ID := p_bank_account_id;
158:
159:
160: ---Make a callout the AR_PREPAYMENTS.REFUND_PREPYMENTS
153: --- be initialized even if the passed parameters p_receipt_method_id
154: --- and p_bank_account_id are null
155:
156: AR_PREPAYMENTS.G_REFUND_RECEIPT_METHOD_ID := p_receipt_method_id;
157: AR_PREPAYMENTS.G_REFUND_BANK_ACCOUNT_ID := p_bank_account_id;
158:
159:
160: ---Make a callout the AR_PREPAYMENTS.REFUND_PREPYMENTS
161: AR_PREPAYMENTS.Refund_Prepayments(
156: AR_PREPAYMENTS.G_REFUND_RECEIPT_METHOD_ID := p_receipt_method_id;
157: AR_PREPAYMENTS.G_REFUND_BANK_ACCOUNT_ID := p_bank_account_id;
158:
159:
160: ---Make a callout the AR_PREPAYMENTS.REFUND_PREPYMENTS
161: AR_PREPAYMENTS.Refund_Prepayments(
162: -- Standard API parameters.
163: p_api_version ,
164: p_init_msg_list ,
157: AR_PREPAYMENTS.G_REFUND_BANK_ACCOUNT_ID := p_bank_account_id;
158:
159:
160: ---Make a callout the AR_PREPAYMENTS.REFUND_PREPYMENTS
161: AR_PREPAYMENTS.Refund_Prepayments(
162: -- Standard API parameters.
163: p_api_version ,
164: p_init_msg_list ,
165: p_commit ,
189: p_count => x_msg_count,
190: p_data => x_msg_data);
191:
192: IF PG_DEBUG in ('Y', 'C') THEN
193: arp_util.debug('ar_prepayments_pub.Create_Prepayment ()-');
194: END IF;
195:
196: EXCEPTION
197: WHEN OTHERS THEN