211:
212: -- fetch and lock existing records from database for update
213:
214: l_cr_rec.cash_receipt_id := p_cash_receipt_id;
215: arp_cash_receipts_pkg.nowaitlock_fetch_p(l_cr_rec);
216:
217: -- store old distribution_set_id and receivables_trx_id to allow
218: -- for creation of new distribution records if necessary
219:
381:
382: END IF;
383: --End bug 7422644, get the related reference customer information
384:
385: arp_cash_receipts_pkg.update_p(l_cr_rec);
386:
387:
388: -- update cash receipt history record:
389:
969: IF PG_DEBUG in ('Y', 'C') THEN
970: arp_debug.debug( 'Anticipated_clearing_date = ' || p_anticipated_clearing_date);
971: END IF;
972:
973: arp_cash_receipts_pkg.insert_p(l_cr_rec);
974: p_cr_id := l_cr_rec.cash_receipt_id; -- return cash receipt id
975:
976: -- get the ROWID out NOCOPY parameter:
977: