diff --git a/Modules/mip_quotation_document.pck b/Modules/mip_quotation_document.pck index 7c37c1c..97b9903 100644 --- a/Modules/mip_quotation_document.pck +++ b/Modules/mip_quotation_document.pck @@ -98,6 +98,7 @@ CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS plpdf.LineBreak; l_caveats_counter := l_caveats_counter +1; end loop; + --revert back to the original screen settings plpdf.SetCellMargin(l_cell_margin); plpdf.SetLeftMargin(31.7); @@ -952,7 +953,8 @@ CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS %param p_indent - the left margin measurement. %param p_vertical_offset - the top margin measurement. */ - PROCEDURE build_caveats_page(p_quote_data in quote_data, p_font in varchar2, p_indent in number, p_vertical_offset in number,p_watermark_blob blob) is + PROCEDURE build_caveats_page(p_quote_data in quote_data, p_font in varchar2, p_indent in number, p_vertical_offset in number,p_watermark_blob blob, p_logger_caveat_required in boolean) is + l_cell_margin number; begin --Page 3 plpdf.NewPage; @@ -970,19 +972,30 @@ CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS plpdf.PrintText(p_indent,p_vertical_offset+18,'Length: '||p_quote_data.house_length||' mm'); plpdf.PrintText(p_indent+40,p_vertical_offset+18,'Depth: '||p_quote_data.house_depth||' mm'); plpdf.PrintText(p_indent+80,p_vertical_offset+18,'Height: '||p_quote_data.house_height||' mm'); - plpdf.PrintText(p_indent,p_vertical_offset+26,'Minimum Ventilation: '||p_quote_data.house_ventilation/10||' sq. cm'); + --plpdf.PrintText(p_indent,p_vertical_offset+26,'Minimum Ventilation: '||p_quote_data.house_ventilation/10||' sq. cm'); --base - plpdf.PrintText(p_indent,p_vertical_offset+42,'Meter Housing Base (if required):'); - plpdf.PrintText(p_indent,p_vertical_offset+50,'Length: '||p_quote_data.base_length||' mm'); - plpdf.PrintText(p_indent+40,p_vertical_offset+50,'Depth: '||p_quote_data.base_depth||' mm'); - plpdf.PrintText(p_indent+80,p_vertical_offset+50,'Height: '||p_quote_data.base_height||' mm'); - plpdf.PrintText(p_indent,p_vertical_offset+58,'Minimum Ventilation: '||p_quote_data.outlet_termninal_size||' mm'); - plpdf.PrintText(p_indent,p_vertical_offset+74,'Special Features/Terms/Conditions:'); + plpdf.PrintText(p_indent,p_vertical_offset+34,'Meter Housing Base (if required):'); + plpdf.PrintText(p_indent,p_vertical_offset+42,'Length: '||p_quote_data.base_length||' mm'); + plpdf.PrintText(p_indent+40,p_vertical_offset+42,'Depth: '||p_quote_data.base_depth||' mm'); + plpdf.PrintText(p_indent+80,p_vertical_offset+42,'Height: '||p_quote_data.base_height||' mm'); + --plpdf.PrintText(p_indent,p_vertical_offset+58,'Minimum Ventilation: '||p_quote_data.outlet_termninal_size||' mm'); + plpdf.PrintText(p_indent,p_vertical_offset+58,'Special Features/Terms/Conditions:'); plpdf.SetPrintFont(p_font,'B',10); --set bold -- TERM_COND caveat here if p_quote_data.caveat_term_cond is not null then - print_caveats(p_quote_data.caveat_term_cond, p_vertical_offset+78); + print_caveats(p_quote_data.caveat_term_cond, p_vertical_offset+62); end if; + if p_logger_caveat_required then + --set up the screen so we can have our size 4 spacing + l_cell_margin:= plpdf.GetCellMargin; + plpdf.SetLeftMargin(33.7); + plpdf.SetCellMargin(-2); + plpdf.PrintFlowingText(4, 'MIP_QUOTATION_DOCUMENT.build_caveats_page.line 921 This is the caveat for Logger, if you are reading this text then the correct logger caveat text has yet to be hardcoded into the webMIP system'); + --revert back to the original screen settings + plpdf.SetCellMargin(l_cell_margin); + plpdf.SetLeftMargin(31.7); + end if; + --the caveats will be looped in so the positioning of the the following items will --need to be dynamic (see the quote costs code above for an example) plpdf.SetPrintFont(p_font,null,10); --unset bold @@ -1381,7 +1394,11 @@ CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS --build the pages for the quote build_covering_letter(p_quote_data,l_font,l_indent,l_vertical_offset,l_logo_blob, l_signature_blob, l_watermark_blob);--1 build_costs_page(p_quote_data,l_font,l_indent,l_vertical_offset,l_watermark_blob); --2 - build_caveats_page(p_quote_data,l_font,l_indent,l_vertical_offset,l_watermark_blob); --3 + if l_enty_code = 'REMOVE' or l_enty_code = 'STD REMOVE' or l_enty_code = 'ADVERSARIAL' then + build_caveats_page(p_quote_data,l_font,l_indent,l_vertical_offset,l_watermark_blob, true); --3 + 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 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