102: IF l_deferred_flag = 'Y'
103: THEN
104: IF pg_debug IN ('Y','C')
105: THEN
106: arp_debug.debug('Rule is deferred, no contingency on AR side');
107: END IF;
108: RETURN TRUE;
109: ELSE
110: RETURN FALSE;
166:
167: BEGIN
168: IF pg_debug IN ('Y','C')
169: THEN
170: arp_debug.debug('ar_deferral_reasons_grp.record_acceptance()+');
171: arp_debug.debug(' acceptance_date = ' || p_order_line.acceptance_date);
172: END IF;
173:
174: -- Standard Start of API savepoint
167: BEGIN
168: IF pg_debug IN ('Y','C')
169: THEN
170: arp_debug.debug('ar_deferral_reasons_grp.record_acceptance()+');
171: arp_debug.debug(' acceptance_date = ' || p_order_line.acceptance_date);
172: END IF;
173:
174: -- Standard Start of API savepoint
175: SAVEPOINT record_acceptance_grp;
199: /* Parent or target lines */
200: FOR p_line_rec IN parent_lines LOOP
201: IF pg_debug IN ('Y','C')
202: THEN
203: arp_debug.debug('accepting parent line : ' || p_line_rec.customer_trx_line_id);
204: arp_debug.debug(' so_line_id : ' ||
205: p_order_line.interface_line_attribute6);
206: END IF;
207:
200: FOR p_line_rec IN parent_lines LOOP
201: IF pg_debug IN ('Y','C')
202: THEN
203: arp_debug.debug('accepting parent line : ' || p_line_rec.customer_trx_line_id);
204: arp_debug.debug(' so_line_id : ' ||
205: p_order_line.interface_line_attribute6);
206: END IF;
207:
208: /* 13064007 - Skip this line if it is deferred */
225: p_trx_id => p_line_rec.customer_trx_id);
226:
227: IF pg_debug IN ('Y','C')
228: THEN
229: arp_debug.debug('Rev rec created ' || l_sum_dist ||
230: ' distributions for child trx_id ' ||
231: p_line_rec.customer_trx_id);
232: END IF;
233:
250:
251: FOR c_line_rec IN child_lines(p_line_rec.customer_trx_line_id) LOOP
252: IF pg_debug IN ('Y','C')
253: THEN
254: arp_debug.debug('accepting child line : ' ||
255: c_line_rec.customer_trx_line_id);
256: END IF;
257:
258: /* 13064007 - Skip this line if it is deferred */
270: p_trx_id => c_line_rec.customer_trx_id);
271:
272: IF pg_debug IN ('Y','C')
273: THEN
274: arp_debug.debug('Rev rec created ' || l_sum_dist ||
275: ' distributions for child trx_id ' ||
276: c_line_rec.customer_trx_id);
277: END IF;
278: END IF;
310:
311: IF pg_debug IN ('Y','C')
312: THEN
313: l_rows := SQL%ROWCOUNT;
314: arp_debug.debug(' parent interface lines updated : ' || l_rows);
315: END IF;
316: END IF;
317:
318: /* This updates any child lines in interface table */
340:
341: IF pg_debug IN ('Y','C')
342: THEN
343: l_rows := SQL%ROWCOUNT;
344: arp_debug.debug(' child interface lines updated : ' || l_rows);
345: arp_debug.debug('ar_deferral_reasons_grp.record_acceptance()-');
346: END IF;
347:
348: EXCEPTION
341: IF pg_debug IN ('Y','C')
342: THEN
343: l_rows := SQL%ROWCOUNT;
344: arp_debug.debug(' child interface lines updated : ' || l_rows);
345: arp_debug.debug('ar_deferral_reasons_grp.record_acceptance()-');
346: END IF;
347:
348: EXCEPTION
349: WHEN fnd_api.g_exc_error THEN
346: END IF;
347:
348: EXCEPTION
349: WHEN fnd_api.g_exc_error THEN
350: arp_debug.debug('EXCEPTION: fnd_api.g_exc_error');
351: ROLLBACK TO record_acceptance_grp;
352: x_return_status := FND_API.G_RET_STS_ERROR ;
353: fnd_msg_pub.count_and_get (
354: p_encoded => fnd_api.g_false,
355: p_count => x_msg_count,
356: p_data => x_msg_data);
357:
358: WHEN fnd_api.g_exc_unexpected_error THEN
359: arp_debug.debug('EXCEPTION: fnd_api.g_exc_unexpected_error');
360: ROLLBACK TO record_acceptance_grp;
361: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
362: fnd_msg_pub.count_and_get (
363: p_encoded => fnd_api.g_false,
364: p_count => x_msg_count,
365: p_data => x_msg_data);
366:
367: WHEN OTHERS THEN
368: arp_debug.debug('EXCEPTION: Others');
369: ROLLBACK TO record_acceptance_grp;
370: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
371: fnd_msg_pub.count_and_get (
372: p_encoded => fnd_api.g_false,