|
|
发表于 2010/1/14 11:50:23
|
显示全部楼层
This modification allows an option to append a pre-prepared PDF file, to the dynamically produced Invoice and Credit Note PDF files from webERP. For example, we can now append a materials handling sheet, or a product safety sheet, or a terms and conditions sheet, to an Invoice and Credit Note.
<Phil>I'm not sure if the document to append should be determined by reference to the customer or perhaps by the items on the invoice. - this implementation has a document selected per customer and it is sent with every customer</Phil> <emdee> This implementation actually has a PDF document per stock item, its attached only if the stock item is on the invoice. </emdee>
An appended PDF file can be either Landscape, or Portrait orientation, the resulting PDF can contain both a Landscape invoice, and a Portrait information sheet.
Installation
We require at least FPDF version 1.53. Make sure your includes/fpdf.php file is up-to-date. <emdee> The current 3.08 weberp package has an older version of FPDF, you need to overwrite with the latest versions. </emdee>
To retain compatibility with the other PDF documents, make this change to the new fpdf.php file,
line 994, replace:
function Output($name=,$dest=)
with
function Output($name='pdf',$dest='S')
We require at least FPDI version 1.2. Download FPDI package, unzip and move to fpdi directory under webERP installation root.
http://www.fpdf.org/
http://www.setasign.de/products/pdf-php-solutions/fpdi/ |
|