Addressed #363, assertion error and/or ORA-06502 errors during the quote generation caused by missing Required Meter Size or Qmax in the submitted enquiry.
git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3975 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
@@ -24,10 +24,11 @@ CREATE OR REPLACE PACKAGE BODY mip_helper_special_cases IS
|
||||
,p_field_name => 'INSTALL_SUB_BUILDING'
|
||||
,p_error_message => 'At least one of Building or Sub-Building must be completed.');
|
||||
END IF;
|
||||
|
||||
|
||||
-- O-M2
|
||||
IF p_rec.enty_code IN ('STD INSTALL', 'STD EXCHANGE') THEN
|
||||
IF p_rec.required_mesc_code = 'OTHER' THEN
|
||||
IF (p_rec.required_mesc_code IS NULL OR
|
||||
p_rec.required_mesc_code = 'OTHER') THEN
|
||||
IF p_rec.qmax IS NULL THEN
|
||||
mip_mandatory.add_error(p_mandatory_checks => p_mandatory_checks
|
||||
,p_field_name => 'QMAX'
|
||||
@@ -35,14 +36,13 @@ CREATE OR REPLACE PACKAGE BODY mip_helper_special_cases IS
|
||||
END IF;
|
||||
END IF;
|
||||
END IF;
|
||||
|
||||
|
||||
-- O-M3
|
||||
IF p_rec.enty_code IN
|
||||
('INSTALL', 'OFMAT', 'REMOVE', 'ADVERSARIAL', 'ALTERATION',
|
||||
'CHANGE CAPACITY', 'ADDON', 'OTHER')
|
||||
AND p_rec.required_svcp_code = 'IP'
|
||||
AND
|
||||
(p_rec.required_ip_details IS NULL) THEN
|
||||
AND (p_rec.required_ip_details IS NULL) THEN
|
||||
mip_mandatory.add_error(p_mandatory_checks => p_mandatory_checks
|
||||
,p_field_name => 'REQUIRED_SVCP_CODE'
|
||||
,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_error_message => 'Required IP Details must be completed when a Service Pressure of ''IP'' is requested.');
|
||||
END IF;
|
||||
|
||||
|
||||
-- O-M4
|
||||
IF p_rec.enty_code IN ('INSTALL', 'STD INSTALL')
|
||||
AND (p_rec.mprn IS NULL AND p_rec.mprn_alt IS NULL) THEN
|
||||
@@ -61,11 +61,11 @@ CREATE OR REPLACE PACKAGE BODY mip_helper_special_cases IS
|
||||
,p_field_name => 'MPRN_ALT'
|
||||
,p_error_message => 'Either MPRN or Additional Information must be completed.');
|
||||
END IF;
|
||||
|
||||
|
||||
-- O-M5
|
||||
-- Tripartite Agreement and AMR -- this is a specific example of the Tripartite and addons
|
||||
-- This is handled through the mip_tripartite.addon functionality
|
||||
|
||||
|
||||
-- O-M6
|
||||
IF p_rec.enty_code IN ('OFMAT', 'EXCHANGE', 'STD EXCHANGE', 'REMOVE',
|
||||
'STD REMOVE', 'ADVERSARIAL', 'CHANGE CAPACITY')
|
||||
|
||||
Reference in New Issue
Block a user