fixed mam bug. Altered the way mam text is gotten, now uses the quotation_text column rather than the description. Added text for logger caveat. Altered hunt group number to the correct number.

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3644 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
PriestJ
2008-02-20 15:11:19 +00:00
parent 8f4995f342
commit 9e3cf59e6b

View File

@@ -180,7 +180,7 @@ CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS
function get_mam(p_region_code varchar2) return varchar2 is
l_mam_desc varchar2(80);
CURSOR c_get_mam(cp_region_code varchar2) IS
SELECT description
SELECT quotation_text
FROM regions
WHERE code = cp_region_code;
begin
@@ -813,12 +813,12 @@ CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS
plpdf.PrintText(p_indent,p_vertical_offset+58,'Date: '||p_quote_data.current_date);
plpdf.PrintText(p_indent,p_vertical_offset+66,'Quotation Contact: Non Standard Customer Service Team');
plpdf.PrintText(p_indent,p_vertical_offset+70,'Mailbox ; ic.nonstandard1@uk.ngrid.com');
plpdf.PrintText(p_indent,p_vertical_offset+74,'Hunt Group 02476286059');
plpdf.PrintText(p_indent,p_vertical_offset+78,'Fax 02476286044');
plpdf.PrintText(p_indent,p_vertical_offset+74,'Hunt Group 02476 286322');
plpdf.PrintText(p_indent,p_vertical_offset+78,'Fax 02476 286044');
plpdf.PrintText(p_indent,p_vertical_offset+90,'Dear '|| p_quote_data.agent_first_name); --agent first name
plpdf.SetPrintFont(p_font,'B',10); --set bold
plpdf.PrintText(p_indent,p_vertical_offset+98,'Re: '||rtrim(ltrim(p_quote_data.site_address(1)||', '||p_quote_data.site_address(2)||', '||p_quote_data.site_address(3)||', '||p_quote_data.site_address(4)||', '||p_quote_data.site_address(5)||', '||p_quote_data.site_address(6)||', '||p_quote_data.site_address(7),', '),', ')); --site address
l_note_text := 'Note: National Grid Metering are a service provider working on behalf of';
l_note_text := 'Note: National Grid Metering are a service provider working on behalf of ';
l_note_text := l_note_text || p_quote_data.mam;--mam
l_note_text := l_note_text || ', please direct all enquiries regarding this quote to National Grid Metering.';
l_cell_margin:= plpdf.GetCellMargin;
@@ -835,7 +835,7 @@ CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS
plpdf.SetPrintFont(p_font,null,10); --unset bold
plpdf.PrintFlowingText(4,' and in accordance with their General Conditions of Contract for Transactional Meter Works Not Exceeding 7 Bar.');
plpdf.SetPrintFont(p_font,'B',10); --set bold
plpdf.PrintFlowingText(4,' Please note, if you accept this quotation you are agreeing to be bound by the terms of the Wales & West Utilities Limited and General Conditions of Contract for Transactional Meter Works Not Exceeding 7 Bar, and all subsequent work will be performed in accordance with that contract.');
plpdf.PrintFlowingText(4,' Please note, if you accept this quotation you are agreeing to be bound by the terms of the '||p_quote_data.mam||' and General Conditions of Contract for Transactional Meter Works Not Exceeding 7 Bar, and all subsequent work will be performed in accordance with that contract.');
plpdf.SetCellMargin(l_cell_margin);
plpdf.SetLeftMargin(31.7);
plpdf.SetPrintFont(p_font,null,10); --unset bold
@@ -990,7 +990,7 @@ CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS
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');
plpdf.PrintFlowingText(4, 'This quote does not include the removal of the Datalogger. Please make the necessary arrangements with the Gas Transporter.');
--revert back to the original screen settings
plpdf.SetCellMargin(l_cell_margin);
plpdf.SetLeftMargin(31.7);