845:
846: /* 5728628 - default LE if parameter is passed as null */
847: IF p_legal_entity_id IS NULL
848: THEN
849: l_legal_entity_id := ar_receipt_lib_pvt.get_legal_entity(
850: p_remittance_bank_account_id);
851: IF PG_DEBUG in ('Y', 'C') THEN
852: arp_debug.debug('p_legal_entity_id is NULL, defaulting from ar_receipt_lib_pvt');
853: arp_debug.debug('l_legal_entity_id = ' || l_legal_entity_id);
848: THEN
849: l_legal_entity_id := ar_receipt_lib_pvt.get_legal_entity(
850: p_remittance_bank_account_id);
851: IF PG_DEBUG in ('Y', 'C') THEN
852: arp_debug.debug('p_legal_entity_id is NULL, defaulting from ar_receipt_lib_pvt');
853: arp_debug.debug('l_legal_entity_id = ' || l_legal_entity_id);
854: END IF;
855: ELSE
856: l_legal_entity_id := p_legal_entity_id;