492: Elsif (x_document_type = 'AP') then
493:
494: select head.vendor_id
495: into l_vendor_id
496: from ap_invoices_all head
497: where head.invoice_id = x_document_header_id;
498:
499: Elsif (x_document_type = 'EXP') then
500: