Addresses #396. Checking of existing meter didn't recognize the 'OTHER' meter model correctly in labour-only quotes.

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@4010 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
hardya
2008-03-14 16:01:33 +00:00
parent 2054eb96d6
commit 5d2da832ea

View File

@@ -1458,7 +1458,11 @@ RECEIVED AT THIS ADDRESS CANNOT BE RESPONDED TO.');
FUNCTION get_existing_metr_details(p_enqu t_enqu) RETURN t_rec_metr_details IS
l_rec_metr_details t_rec_metr_details;
BEGIN
IF p_enqu.existing_metr_code IS NOT NULL THEN
pl('get_existing_metr_details:entry'
,$$PLSQL_LINE);
IF nvl(p_enqu.existing_metr_code
,'OTHER') <> 'OTHER' THEN
l_rec_metr_details := get_metr_details(p_enqu.existing_metr_code);
ELSE
l_rec_metr_details.mesc_code := p_enqu.existing_mesc_code;
@@ -1468,6 +1472,10 @@ RECEIVED AT THIS ADDRESS CANNOT BE RESPONDED TO.');
l_rec_metr_details.mety_code := p_enqu.existing_mety_code;
END IF;
pl('get_existing_metr_details:exit:' || l_rec_metr_details.code || ':' ||
l_rec_metr_details.mesc_code || ':' || l_rec_metr_details.mety_code || ':' ||
l_rec_metr_details.prty_id
,$$PLSQL_LINE);
RETURN l_rec_metr_details;
END get_existing_metr_details;