472: --
473: IF(p_document_org_id IS NULL) THEN
474: --
475: -- You can pass in a null, or leave out this parameter, in which case
476: -- we need to get the org from the po_system_parameters table.
477: begin
478: select org_id
479: into x_org_id
480: from po_system_parameters;
476: -- we need to get the org from the po_system_parameters table.
477: begin
478: select org_id
479: into x_org_id
480: from po_system_parameters;
481: exception
482: when others then
483: po_message_s.sql_error('In Exception of create_negotiation()', x_progress, sqlcode);
484: end;