Modify gen_mandatory.prc to only process non-null field-names.

Modify mip_regions.pck to expose get_region_for_postcode.

Check-in ongoing work with mip_quotation.pck.

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3018 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
hardya
2007-12-18 17:16:07 +00:00
parent 2e88e639ca
commit d353843a77
3 changed files with 634 additions and 20 deletions

View File

@@ -14,6 +14,13 @@ CREATE OR REPLACE PACKAGE mip_regions IS
*/
FUNCTION valid_postcode_format(p_postcode IN VARCHAR2) RETURN BOOLEAN;
/** Find the region with which the given postcode is associated
%param p_postcode correctly formatted postcode
%return region code or NULL
*/
FUNCTION get_region_for_postcode(p_postcode IN VARCHAR2)
RETURN postcodes.regi_code%TYPE;
END mip_regions;
/
CREATE OR REPLACE PACKAGE BODY mip_regions IS
@@ -134,7 +141,7 @@ CREATE OR REPLACE PACKAGE BODY mip_regions IS
/** Find the region with which the given postcode is associated
%param p_postcode correctly formatted postcode
%return region code
%return region code or NULL
*/
FUNCTION get_region_for_postcode(p_postcode IN VARCHAR2)
RETURN postcodes.regi_code%TYPE IS