made changes to pdf output inline with request from GW, awaiting confirmation on 2 further points that he raised so there will be further changes...
git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3421 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
@@ -773,7 +773,7 @@ CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS
|
||||
%param p_signature_blob - the signature(image) to display at the bottom of the page
|
||||
*/
|
||||
PROCEDURE build_covering_letter(p_quote_data in quote_data, p_font in varchar2, p_indent in number, p_vertical_offset in number,p_logo_blob blob,p_signature_blob blob,p_watermark_blob blob) is
|
||||
l_contracts_text varchar2(500);
|
||||
l_note_text varchar2(500);
|
||||
l_cell_margin number;
|
||||
begin
|
||||
plpdf.NewPage;
|
||||
@@ -810,46 +810,56 @@ CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+46,p_quote_data.supplier_address(6));
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+50,p_quote_data.supplier_address(7));
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+58,'Date: '||p_quote_data.current_date);
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+66,'Quotation Contact: Customer Services Team 1');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+70,'Telephone Number: 02476 286 320');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+74,'Fax Number: 02476 286 044');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+78,'E-mail address: iandcrequests1@uk.ngrid.com');
|
||||
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+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
|
||||
plpdf.SetPrintFont(p_font,null,10); --unset bold
|
||||
l_contracts_text :='I am pleased to provide you with a quotation for works in accordance with the '||p_quote_data.mam;--mam
|
||||
l_contracts_text := l_contracts_text||' General Conditions of Contract for Transactional Meter Works not Exceeding 7 Bar.';
|
||||
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;
|
||||
plpdf.SetLeftMargin(33.7);
|
||||
plpdf.SetCellMargin(-2);
|
||||
plpdf.SetCurrentY(p_vertical_offset+106);
|
||||
plpdf.PrintFlowingText(4,l_contracts_text);
|
||||
plpdf.PrintFlowingText(4,l_note_text);
|
||||
plpdf.LineBreak;
|
||||
plpdf.LineBreak;
|
||||
plpdf.SetPrintFont(p_font,null,10); --unset bold
|
||||
plpdf.PrintFlowingText(4,'I am pleased to provide you with a quotation for works ');
|
||||
plpdf.SetPrintFont(p_font,'B',10); --set bold
|
||||
plpdf.PrintFlowingText(4,' on behalf of '||p_quote_data.mam);
|
||||
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.SetCellMargin(l_cell_margin);
|
||||
plpdf.SetLeftMargin(31.7);
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+120,'This quotation is produced on the basis that, the information provided in the request is correct.');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+124,'Your acceptance of the quotation will be taken to mean that you also accept that the stated');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+128,'assumptions are correct. If it is later determined, by either party prior to works commencing on');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+132,'site, that any stated assumption is significantly incorrect, National Grid Metering will determine');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+136,'whether the quotation shall be varied or withdrawn. Works will only then commence if any');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+140,'variation is agreed in line with the relevant General Conditions of Contract.');
|
||||
plpdf.SetLeftMargin(31.7);
|
||||
plpdf.SetPrintFont(p_font,null,10); --unset bold
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+148,'This quotation is produced on the basis that, the information provided in the request is correct.');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+152,'Your acceptance of the quotation will be taken to mean that you also accept that the stated');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+156,'assumptions are correct. If it is later determined, by either party prior to works commencing on');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+160,'site, that any stated assumption is significantly incorrect, National Grid Metering will determine');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+164,'whether the quotation shall be varied or withdrawn. Works will only then commence if any');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+168,'variation is agreed in line with the relevant General Conditions of Contract.');
|
||||
--
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+148,'To accept the quotation please submit a work request via IX, as outlined in the Rainbow Manual,');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+152,'or complete the enclosed Acceptance Form and return it to the above National Grid Metering''');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+156,'office.');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+176,'To accept the quotation please submit a work request via IX, as outlined in the Rainbow Manual,');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+180,'or complete the enclosed Acceptance Form and return it to the above National Grid Metering''');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+184,'office.');
|
||||
--
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+164,'Please note that this quotation is valid for 90 days from the date specified in the quotation.');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+168,'Please use National Grid Metering''s Reference, which is at the top of the letter, on any future');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+172,'correspondence relating to this request.');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+192,'Please note that this quotation is valid for 90 days from the date specified in the quotation.');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+196,'Please use National Grid Metering''s Reference, which is at the top of the letter, on any future');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+200,'correspondence relating to this request.');
|
||||
--
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+176,'If you have any queries, please contact the team on the number above');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+184,'Yours sincerely');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+208,'If you have any queries, please contact the team on the number above.');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+216,'Yours sincerely');
|
||||
--put on daves signature
|
||||
plpdf.PutImage('dhsignature',p_signature_blob,p_indent,222,44,11);
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+216,'David Harper');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+220,'I&C Technical Manager');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+224,'National Grid Metering');
|
||||
plpdf.PutImage('dhsignature',p_signature_blob,p_indent,248,44,11);
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+234,'David Harper');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+238,'I&C Technical Manager');
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+242,'National Grid Metering');
|
||||
end build_covering_letter;
|
||||
/*
|
||||
PROCEDURE build_costs_page
|
||||
@@ -883,6 +893,7 @@ CREATE OR REPLACE PACKAGE BODY mip_quotation_document IS
|
||||
plpdf.SetPrintFont(p_font,null,10); --unset bold
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+18,'National Grid Metering''s Ref: '|| to_char(p_quote_data.quote_ref));
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+22,'Customer Reference: '|| p_quote_data.transaction_ref);
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+26,'MPRN: '|| to_char(p_quote_data.mprn));
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+30,'Date: '||p_quote_data.current_date);
|
||||
plpdf.SetPrintFont(p_font,'B',10); --set bold
|
||||
plpdf.PrintText(p_indent,p_vertical_offset+38,'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
|
||||
|
||||
Reference in New Issue
Block a user