571: and AUTHORIZATION_STATUS = 0;
572:
573: arp_standard.debug ( 'the value of auth_id is = ' || l_auth_id);
574:
575: ARP_CASH_RECEIPTS_PKG.set_to_dummy(l_cr_rec);
576:
577: l_cr_rec.approval_code := 'AR'||to_char(l_auth_Id);
578:
579: ARP_CASH_RECEIPTS_PKG.update_p(l_cr_rec, l_cash_receipt_id);
575: ARP_CASH_RECEIPTS_PKG.set_to_dummy(l_cr_rec);
576:
577: l_cr_rec.approval_code := 'AR'||to_char(l_auth_Id);
578:
579: ARP_CASH_RECEIPTS_PKG.update_p(l_cr_rec, l_cash_receipt_id);
580:
581: arp_standard.debug('CR rec updated with auth_id and auth code ');
582: end if;
583:
650:
651: IF (l_return_status = FND_API.G_RET_STS_SUCCESS) THEN
652: -- update cash receipt with authorization code and
653:
654: ARP_CASH_RECEIPTS_PKG.set_to_dummy(l_cr_rec);
655: l_cr_rec.approval_code := l_authresult_rec.Auth_code ||'AR'||to_char(l_authresult_rec.Auth_Id);
656:
657: ARP_CASH_RECEIPTS_PKG.update_p(l_cr_rec, l_cash_receipt_id);
658:
653:
654: ARP_CASH_RECEIPTS_PKG.set_to_dummy(l_cr_rec);
655: l_cr_rec.approval_code := l_authresult_rec.Auth_code ||'AR'||to_char(l_authresult_rec.Auth_Id);
656:
657: ARP_CASH_RECEIPTS_PKG.update_p(l_cr_rec, l_cash_receipt_id);
658:
659: IF PG_DEBUG in ('Y', 'C') THEN
660: arp_standard.debug('CR rec updated with auth_id and auth code ');
661: END IF;