The logic that defined how the IP Details/IP Mbar fields were to be validated was incorrect. The DATAITEM_ROLES.xls spreadsheet states that only IP Details field needs to be mandatory when service pressure is IP, the IP mbar field is optional.
git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3879 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
@@ -24,7 +24,7 @@ CREATE OR REPLACE PACKAGE BODY mip_helper_special_cases IS
|
|||||||
,p_field_name => 'INSTALL_SUB_BUILDING'
|
,p_field_name => 'INSTALL_SUB_BUILDING'
|
||||||
,p_error_message => 'At least one of Building or Sub-Building must be completed.');
|
,p_error_message => 'At least one of Building or Sub-Building must be completed.');
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
-- OM-2
|
-- OM-2
|
||||||
IF p_rec.enty_code IN ('STD INSTALL', 'STD EXCHANGE')
|
IF p_rec.enty_code IN ('STD INSTALL', 'STD EXCHANGE')
|
||||||
AND (p_rec.required_mesc_code IS NULL AND p_rec.qmax IS NULL) THEN
|
AND (p_rec.required_mesc_code IS NULL AND p_rec.qmax IS NULL) THEN
|
||||||
@@ -35,14 +35,14 @@ CREATE OR REPLACE PACKAGE BODY mip_helper_special_cases IS
|
|||||||
,p_field_name => 'REQUIRED_MESC_CODE'
|
,p_field_name => 'REQUIRED_MESC_CODE'
|
||||||
,p_error_message => 'At least one of Qmax or Meter Size must be completed.');
|
,p_error_message => 'At least one of Qmax or Meter Size must be completed.');
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
-- OM-3
|
-- OM-3
|
||||||
IF p_rec.enty_code IN
|
IF p_rec.enty_code IN
|
||||||
('INSTALL', 'OFMAT', 'REMOVE', 'ADVERSARIAL', 'ALTERATION',
|
('INSTALL', 'OFMAT', 'REMOVE', 'ADVERSARIAL', 'ALTERATION',
|
||||||
'CHANGE CAPACITY', 'ADDON', 'OTHER')
|
'CHANGE CAPACITY', 'ADDON', 'OTHER')
|
||||||
AND p_rec.required_svcp_code = 'IP'
|
AND p_rec.required_svcp_code = 'IP'
|
||||||
AND
|
AND
|
||||||
(p_rec.required_ip_mbar IS NULL OR p_rec.required_ip_details IS NULL) THEN
|
(p_rec.required_ip_details IS NULL) THEN
|
||||||
mip_mandatory.add_error(p_mandatory_checks => p_mandatory_checks
|
mip_mandatory.add_error(p_mandatory_checks => p_mandatory_checks
|
||||||
,p_field_name => 'REQUIRED_SVCP_CODE'
|
,p_field_name => 'REQUIRED_SVCP_CODE'
|
||||||
,p_error_message => 'Required IP Details must be completed when a Service Pressure of ''IP'' is requested.');
|
,p_error_message => 'Required IP Details must be completed when a Service Pressure of ''IP'' is requested.');
|
||||||
@@ -50,7 +50,7 @@ CREATE OR REPLACE PACKAGE BODY mip_helper_special_cases IS
|
|||||||
,p_field_name => 'REQUIRED_IP_DETAILS'
|
,p_field_name => 'REQUIRED_IP_DETAILS'
|
||||||
,p_error_message => 'Required IP Details must be completed when a Service Pressure of ''IP'' is requested.');
|
,p_error_message => 'Required IP Details must be completed when a Service Pressure of ''IP'' is requested.');
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
-- OM-4
|
-- OM-4
|
||||||
IF p_rec.enty_code IN
|
IF p_rec.enty_code IN
|
||||||
('INSTALL', 'STD INSTALL')
|
('INSTALL', 'STD INSTALL')
|
||||||
@@ -63,11 +63,11 @@ CREATE OR REPLACE PACKAGE BODY mip_helper_special_cases IS
|
|||||||
,p_field_name => 'MPRN_ALT'
|
,p_field_name => 'MPRN_ALT'
|
||||||
,p_error_message => 'Either MPRN or Additional Information must be completed.');
|
,p_error_message => 'Either MPRN or Additional Information must be completed.');
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
-- OM-5
|
-- OM-5
|
||||||
-- Tripartite Agreement and AMR -- this is a specific example of the Tripartite and addons
|
-- Tripartite Agreement and AMR -- this is a specific example of the Tripartite and addons
|
||||||
-- This is handled through the mip_tripartite.addon functionality
|
-- This is handled through the mip_tripartite.addon functionality
|
||||||
|
|
||||||
END table_enquiries;
|
END table_enquiries;
|
||||||
|
|
||||||
BEGIN
|
BEGIN
|
||||||
|
|||||||
Reference in New Issue
Block a user