removed set_file_association function as this is now stored and called from the mip_files package
git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3335 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
@@ -26,10 +26,6 @@ CREATE OR REPLACE PACKAGE mip_enquiry IS
|
||||
,p_partyid IN NUMBER
|
||||
,p_rolecode IN VARCHAR2
|
||||
,p_description IN VARCHAR2) RETURN BOOLEAN;
|
||||
|
||||
FUNCTION set_file_association(p_enquiryid IN NUMBER
|
||||
,p_fileid IN VARCHAR2
|
||||
,p_description IN VARCHAR2) RETURN BOOLEAN;
|
||||
--
|
||||
FUNCTION set_enquiry_event(p_enquiryid IN NUMBER
|
||||
,p_eventcode IN VARCHAR2) RETURN BOOLEAN;
|
||||
@@ -148,46 +144,6 @@ CREATE OR REPLACE PACKAGE BODY mip_enquiry IS
|
||||
RETURN FALSE;
|
||||
END set_enquiry_role;
|
||||
--
|
||||
FUNCTION set_file_association(p_enquiryid IN NUMBER
|
||||
,p_fileid IN VARCHAR2
|
||||
,p_description IN VARCHAR2) RETURN BOOLEAN AS
|
||||
l_docu_id documents.id%TYPE;
|
||||
BEGIN
|
||||
-- the document is stored by APEX in the standard 'files' table
|
||||
-- record the 'additional' document details in our own table.
|
||||
INSERT INTO documents
|
||||
(id
|
||||
,docu_type
|
||||
,uri
|
||||
,description)
|
||||
VALUES
|
||||
(docu_seq.NEXTVAL
|
||||
,'INDO'
|
||||
,p_fileid
|
||||
,p_description)
|
||||
RETURNING id INTO l_docu_id;
|
||||
--record the role of this document for the enquiry
|
||||
INSERT INTO document_roles
|
||||
(id
|
||||
,rt_code
|
||||
,start_date
|
||||
,description
|
||||
,enqu_id
|
||||
,doro_type
|
||||
,docu_id)
|
||||
VALUES
|
||||
(doro_seq.NEXTVAL
|
||||
,'GENERATED QUOTATION'
|
||||
,SYSDATE
|
||||
,p_description
|
||||
,p_enquiryid
|
||||
,'ENDO'
|
||||
,l_docu_id);
|
||||
|
||||
RETURN TRUE;
|
||||
--
|
||||
END set_file_association;
|
||||
|
||||
/*
|
||||
FUNCTION set_enquiry_event
|
||||
- gets the enquiry id and the event type and writes a record in the enquiry_roles table
|
||||
|
||||
Reference in New Issue
Block a user