881:
882: /* 5728628 - default LE if parameter is passed as null */
883: IF p_legal_entity_id IS NULL
884: THEN
885: l_legal_entity_id := ar_receipt_lib_pvt.get_legal_entity(
886: p_remittance_bank_account_id);
887: IF PG_DEBUG in ('Y', 'C') THEN
888: arp_debug.debug('p_legal_entity_id is NULL, defaulting from ar_receipt_lib_pvt');
889: arp_debug.debug('l_legal_entity_id = ' || l_legal_entity_id);
884: THEN
885: l_legal_entity_id := ar_receipt_lib_pvt.get_legal_entity(
886: p_remittance_bank_account_id);
887: IF PG_DEBUG in ('Y', 'C') THEN
888: arp_debug.debug('p_legal_entity_id is NULL, defaulting from ar_receipt_lib_pvt');
889: arp_debug.debug('l_legal_entity_id = ' || l_legal_entity_id);
890: END IF;
891: ELSE
892: l_legal_entity_id := p_legal_entity_id;