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
This commit is contained in:
@@ -1498,11 +1498,14 @@ CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS
|
|||||||
else
|
else
|
||||||
build_caveats_page(p_quote_data,l_font,l_indent,l_vertical_offset,l_watermark_blob, false); --3
|
build_caveats_page(p_quote_data,l_font,l_indent,l_vertical_offset,l_watermark_blob, false); --3
|
||||||
end if;
|
end if;
|
||||||
--OFMAT, Addon jobs don't have module diagrams
|
--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') then
|
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
|
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;
|
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
|
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
|
--get our beautiful pdf into the local var l_blob
|
||||||
plpdf.SendDoc(l_blob);
|
plpdf.SendDoc(l_blob);
|
||||||
|
|||||||
Reference in New Issue
Block a user