216: IF (p_adj_rec.type in ('LINE', 'CHARGES') AND
217: p_check_amount = FND_API.G_TRUE AND
218: p_adj_rec.amount <> 0) THEN
219:
220: ARP_PROCESS_ADJUSTMENT.cal_prorated_amounts(p_adj_rec.amount,
221: p_adj_rec.payment_schedule_id,
222: p_adj_rec.type,
223: p_adj_rec.receivables_trx_id,
224: p_adj_rec.apply_date,
1912: arp_util.debug('Create_Adjustment: ' || 'l_inp_adj_rec.tax_adjusted = ' || to_char(l_inp_adj_rec.tax_adjusted));
1913: END IF;
1914:
1915: BEGIN
1916: arp_process_adjustment.insert_adjustment (
1917: 'DUMMY',
1918: '1',
1919: l_inp_adj_rec,
1920: o_adjustment_number,
1938: ROLLBACK TO ar_adjust_PUB;
1939: p_return_status := FND_API.G_RET_STS_ERROR ;
1940:
1941: FND_MESSAGE.set_name( 'AR', 'GENERIC_MESSAGE' );
1942: FND_MESSAGE.set_token( 'GENERIC_TEXT', 'arp_process_adjustment.insert_adjustment exception: '||SQLERRM );
1943: --2920926
1944: FND_MSG_PUB.ADD;
1945: /*--------------------------------------------------+
1946: | Get message count and if 1, return message data |
2510: arp_util.debug('create_linelevel_adjustment: ' || 'l_inp_adj_rec.tax_adjusted = ' || to_char(l_inp_adj_rec.tax_adjusted));
2511: END IF;
2512:
2513: BEGIN
2514: arp_process_adjustment.insert_adjustment (
2515: 'DUMMY',
2516: '1',
2517: l_inp_adj_rec,
2518: o_adjustment_number,
2538: ROLLBACK TO ar_adjust_line_PUB;
2539: p_return_status := FND_API.G_RET_STS_ERROR ;
2540:
2541: FND_MESSAGE.set_name( 'AR', 'GENERIC_MESSAGE' );
2542: FND_MESSAGE.set_token( 'GENERIC_TEXT', 'arp_process_adjustment.insert_adjustment exception: '||SQLERRM );
2543: --2920926
2544: FND_MSG_PUB.ADD;
2545: /*--------------------------------------------------+
2546: | Get message count and if 1, return message data |
2955: /*-----------------------------------------------+
2956: | Call the entity Handler for Modify |
2957: +-----------------------------------------------*/
2958: BEGIN
2959: arp_process_adjustment.update_adjustment (
2960: 'DUMMY',
2961: '1',
2962: l_inp_adj_rec,
2963: p_move_deferred_tax,
2974:
2975: p_return_status := FND_API.G_RET_STS_ERROR ;
2976:
2977: FND_MESSAGE.set_name( 'AR', 'GENERIC_MESSAGE' );
2978: FND_MESSAGE.set_token( 'GENERIC_TEXT', 'arp_process_adjustment.update_adjustment exception: '||SQLERRM );
2979: --2920926
2980: FND_MSG_PUB.ADD;
2981:
2982: /*--------------------------------------------------+
3147: | Added 1 new parameter: |
3148: | - p_chk_approval_limits |
3149: | Made changes the way a reverse adjustment is |
3150: | created. It used to used to call |
3151: | arp_process_adjustment.reverse_adjustment |
3152: | which used to create a reverse adjustment but|
3153: | not update the payment schedules. This has |
3154: | been changed to call Create Adjustment. |
3155: | S.Nambiar 27-Sep-00 Added a new parameter p_called_from for BR |
3964: | handler to indicate that check the amount_adjusted |
3965: | with the user approval limits only if |
3966: | p_chk_approval_limit flag is set to 'T'. |
3967: +-------------------------------------------------------*/
3968: arp_process_adjustment.update_approve_adj (
3969: 'DUMMY',
3970: '1',
3971: l_inp_adj_rec,
3972: l_inp_adj_rec.status,
3985:
3986: p_return_status := FND_API.G_RET_STS_ERROR ;
3987:
3988: FND_MESSAGE.set_name( 'AR', 'GENERIC_MESSAGE' );
3989: FND_MESSAGE.set_token( 'GENERIC_TEXT', 'arp_process_adjustment.update_approve_adj exception: '||SQLERRM );
3990: --2920926
3991: FND_MSG_PUB.ADD;
3992: /*--------------------------------------------------+
3993: | Get message count and if 1, return message data |