278: --
279: IF(p_document_org_id IS NULL) THEN
280: --
281: -- You can pass in a null, or leave out this parameter, in which case
282: -- we need to get the org from the po_system_parameters table.
283: begin
284: select org_id
285: into x_org_id
286: from po_system_parameters;
282: -- we need to get the org from the po_system_parameters table.
283: begin
284: select org_id
285: into x_org_id
286: from po_system_parameters;
287: exception
288: when others then
289: po_message_s.sql_error('In Exception of create_negotiation()', x_progress, sqlcode);
290: end;