From ea2b52225b26a3223b5ca41b725d6ed1df85bd88 Mon Sep 17 00:00:00 2001 From: PriestJ Date: Wed, 18 Jun 2008 14:45:15 +0000 Subject: [PATCH] Fix for #518, moved caveat print out to be a little further to the right so that larger costs do not get overwritten. git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@5344 248e525c-4dfb-0310-94bc-949c084e9493 --- Modules/mip_quotation_document.pck | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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