diff --git a/Modules/mip_quotation_document.pck b/Modules/mip_quotation_document.pck index 0533f94..20e0de8 100644 --- a/Modules/mip_quotation_document.pck +++ b/Modules/mip_quotation_document.pck @@ -77,6 +77,15 @@ END mip_quotation_document; / CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS +PROCEDURE pl(p_in IN VARCHAR2 + ,p_line IN NUMBER DEFAULT NULL) IS + BEGIN + + $IF mip_debug_constants.debugging $THEN mip_debug.pl(p_unit => $$PLSQL_UNIT + ,p_line => p_line + ,p_in => p_in); + $END NULL; + END pl; /* function get_meter_type_code_desc @@ -877,8 +886,11 @@ CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS begin plpdf.NewPage; --set watermark if it exists - if p_watermark_blob is not null then + if p_watermark_blob is not null THEN + pl('watermark IS NOT null',$$plsql_line); plpdf.PutImage('test watermark',p_watermark_blob,50,50,200,200); + ELSE + pl('watermark IS null',$$plsql_line); end if; -- set margins plpdf.SetLeftMargin(31.7); @@ -1031,7 +1043,7 @@ CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS -- CONT_SUM caveat here if p_quote_data.caveat_cont_sum is not null then - print_one_line_caveats(p_quote_data.caveat_cont_sum, p_vertical_offset+111,plpdf.GetCurrentY+4,4); + print_one_line_caveats(p_quote_data.caveat_cont_sum, p_vertical_offset+111,plpdf.GetCurrentY+8,4); end if; l_vertical_offset_for_costs := l_vertical_offset_for_costs+(plpdf.GetCurrentY-l_ybefore); plpdf.SetPrintFont(p_font,null,10); --unset bold