From 91bb6b3537cae683d17a5f34df0885432feccf6f Mon Sep 17 00:00:00 2001 From: PriestJ Date: Tue, 15 Apr 2008 11:43:07 +0000 Subject: [PATCH] fix for #500(SC4004) change code such that the 2 techspecs pages do not get built into the quote if the job type is a Removal, Std Removal or Adversarial. git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@4796 248e525c-4dfb-0310-94bc-949c084e9493 --- Modules/mip_quotation_document.pck | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Modules/mip_quotation_document.pck b/Modules/mip_quotation_document.pck index f50d978..43d103f 100644 --- a/Modules/mip_quotation_document.pck +++ b/Modules/mip_quotation_document.pck @@ -1498,11 +1498,14 @@ CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS else build_caveats_page(p_quote_data,l_font,l_indent,l_vertical_offset,l_watermark_blob, false); --3 end if; - --OFMAT, Addon jobs don't have module diagrams - if not (l_enty_code = 'OFMAT' or l_enty_code = 'AMR' or l_enty_code = 'EMS') then + --OFMAT, Addon jobs, Std removal, removal, adversarials don't have module diagrams + if not (l_enty_code = 'OFMAT' or l_enty_code = 'AMR' or l_enty_code = 'EMS' or l_enty_code = 'REMOVE' or l_enty_code = 'STD REMOVE' or l_enty_code = 'ADVERSARIAL') then build_drawings_page(p_quote_data,l_font,l_indent,l_vertical_offset, l_base_blob, l_house_blob, l_module_blob,l_watermark_blob); --4 end if; - build_module_specs_page(p_quote_data,l_font,l_indent,l_vertical_offset,l_watermark_blob); --5 + --No need for 2nd tech specs page for removal type jobs + if not (l_enty_code = 'REMOVE' or l_enty_code = 'STD REMOVE' or l_enty_code = 'ADVERSARIAL') then + build_module_specs_page(p_quote_data,l_font,l_indent,l_vertical_offset,l_watermark_blob); --5 + end if; build_acceptance_page(p_quote_data,l_font,l_indent,l_vertical_offset,l_logo_blob,l_watermark_blob); --6 --get our beautiful pdf into the local var l_blob plpdf.SendDoc(l_blob);