Modify additional item cost routines in mip_bulk_load.pck and mip_quotation.pck to make use of enquiry type as a cost parameter. Matching changes to the BULK_LOAD.xls spreadsheet.
Change get_quote_items.fnc to return the descriptions of additional items instead of the 'code'. git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@12542 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
@@ -2056,6 +2056,7 @@ RECEIVED AT THIS ADDRESS CANNOT BE RESPONDED TO.');
|
||||
BEGIN
|
||||
pl('get_aico:' || p_adit_code || ':' || p_regi_code
|
||||
,$$PLSQL_LINE);
|
||||
|
||||
SELECT lead_time
|
||||
,selling_price
|
||||
,cost_price
|
||||
@@ -2072,6 +2073,11 @@ RECEIVED AT THIS ADDRESS CANNOT BE RESPONDED TO.');
|
||||
,delivery_cost
|
||||
,adit_code
|
||||
FROM (SELECT CASE
|
||||
WHEN cost.enty_code IS NULL THEN
|
||||
0
|
||||
ELSE
|
||||
1000
|
||||
END + CASE
|
||||
WHEN cost.regi_code IS NULL THEN
|
||||
0
|
||||
ELSE
|
||||
@@ -2882,7 +2888,8 @@ RECEIVED AT THIS ADDRESS CANNOT BE RESPONDED TO.');
|
||||
,'AQI');
|
||||
END IF;
|
||||
|
||||
IF p_enqu.purging_required IN ('TM', 'FC') THEN
|
||||
IF p_enqu.purging_required IN ('TM', 'FC')
|
||||
OR p_enqu.enty_code = 'ADVERSARIAL' THEN
|
||||
INSERT INTO quote_items
|
||||
(id
|
||||
,qute_id
|
||||
@@ -3149,7 +3156,8 @@ RECEIVED AT THIS ADDRESS CANNOT BE RESPONDED TO.');
|
||||
--
|
||||
-- Purging required on Time and Materials basis
|
||||
--
|
||||
IF p_enqu.purging_required = 'TM' THEN
|
||||
IF p_enqu.purging_required = 'TM'
|
||||
OR p_enqu.enty_code = 'ADVERSARIAL' THEN
|
||||
l_purging_costs.selling_price := NULL;
|
||||
l_purging_costs.cost_price := NULL;
|
||||
l_purging_costs.delivery_cost := NULL;
|
||||
@@ -3469,7 +3477,8 @@ RECEIVED AT THIS ADDRESS CANNOT BE RESPONDED TO.');
|
||||
--
|
||||
-- Purging required on Time and Materials basis
|
||||
--
|
||||
IF p_enqu.purging_required = 'TM' THEN
|
||||
IF p_enqu.purging_required = 'TM'
|
||||
OR p_enqu.enty_code = 'ADVERSARIAL' THEN
|
||||
l_purging_costs.selling_price := NULL;
|
||||
l_purging_costs.cost_price := NULL;
|
||||
l_purging_costs.delivery_cost := NULL;
|
||||
@@ -3584,7 +3593,8 @@ RECEIVED AT THIS ADDRESS CANNOT BE RESPONDED TO.');
|
||||
,'AQI');
|
||||
END IF;
|
||||
|
||||
IF p_enqu.purging_required IN ('TM', 'FC') THEN
|
||||
IF p_enqu.purging_required IN ('TM', 'FC')
|
||||
OR p_enqu.enty_code = 'ADVERSARIAL' THEN
|
||||
INSERT INTO quote_items
|
||||
(id
|
||||
,qute_id
|
||||
|
||||
Reference in New Issue
Block a user