From 5d2da832ea8a27f7d5a3e1e02decc2138fe3ae15 Mon Sep 17 00:00:00 2001 From: hardya Date: Fri, 14 Mar 2008 16:01:33 +0000 Subject: [PATCH] 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 --- Modules/mip_quotation.pck | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Modules/mip_quotation.pck b/Modules/mip_quotation.pck index 7f786ea..4e41e5d 100644 --- a/Modules/mip_quotation.pck +++ b/Modules/mip_quotation.pck @@ -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;