Seed/enst.ctl - add INVALID status

Documentation/Design/DatabaseItemToFunctionalSpecificationReference.xls - add rule O-M5
Documentation/pldoc - regenerated
Modules/mip_helper_special_cases.pck - make reference to Tripartite rule O-M5 (handled by mip_quotation.pck and mip_tripartite.pck
Schema - removed DATA_ITEM_ROLES_IMPORT, added views of enquiries and quote statuses

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3354 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
hardya
2008-01-22 17:59:56 +00:00
parent 374ba0aee9
commit 7311d92835
61 changed files with 9184 additions and 111 deletions

View File

@@ -0,0 +1,40 @@
CREATE OR REPLACE VIEW v_current_quote_status
AS
SELECT qute_id
,event_date
,qust_code
FROM (SELECT qute_id
,event_date
,qust_code
,decode(qust_code
,'INP'
,1
,'AV'
,2
,'SELREJ'
,3
,'SELECTED'
,5
,'REJECTED'
,6
,'ACCEPTED'
,7
,'LAPSED'
,8) AS this_event
,MAX(decode(qust_code
,'INP'
,1
,'AV'
,2
,'SELREJ'
,3
,'SELECTED'
,5
,'REJECTED'
,6
,'ACCEPTED'
,7
,'LAPSED'
,8)) over(PARTITION BY qute_id) AS max_event
FROM quote_events)
WHERE this_event = max_event