 |
vtiger The Honest Open Source CRM
|
| Previous topic :: Next topic |
| Author |
Message |
edlentz
Joined: 18 Nov 2005
Posts: 509
Location: Midland, Mi.
|
| Posted: Tue Nov 07, 2006 1:40 pm Post subject: PDF in Invoice and Quotes |
|
|
The PDF in the Quotes and Invoices have some problems (VT 5.02). I need to show the Sales tax on the line down where it says Tax at the bottom. This isn't happening. Also, when I have a cost amount greater than 6 digits it overlaps the balloon surrounding the table. Also, is it possible in the Quotes and Invoices to show the description of the items added to the Quote or Invoice without running the PDF? It would be REALLY GREAT to be able to Mail merge Quotes and Invoices. If I bought the support would that extra bit of programming be included?
Thanks |
|
| Back to top |
|
edlentz
Joined: 18 Nov 2005
Posts: 509
Location: Midland, Mi.
|
| Posted: Wed Nov 15, 2006 2:24 pm Post subject: Re: PDF in Invoice and Quotes |
|
|
| Many lookers but no advice? |
|
| Back to top |
|
greggster
Joined: 27 Oct 2006
Posts: 65
Location: San Francisco
|
| Posted: Sun Dec 03, 2006 4:02 am Post subject: Re: PDF in Invoice and Quotes |
|
|
I can't help on the mail merge or views, but here is what I can help with:
The main body of the invoice is vtigercrm/include/fpdf/templates/body.php
This is the file specified in modules/Invoice/CreatePDF.php
You can copy and rename body.php to like body-rev1.php, and edit it as you please, call it out in CreatePDF.php and tweak from there.
In body.php:
* The x,y,width is specified for the bubble size and position
*The numbers can be aligned by deleting spaces in the output lines
*Since CreatePDF.php controls the output for header.php, footer.php and body.php, move pieces from footer to body if you like, align them and play with the alignment.
* Check for commented out items regarding sales tax in CreatePDF.php and body.php
* I added comments from the invoice to the pdf invoice by adding it in CreatePDF and body.php - used mysql to verify the field names were right and it showed up right the first time.
The code is quite easy to work with and commented pretty well (thanks vTiger team!). I am glad I got to tweak it, well worth it. |
|
| Back to top |
|
| |
|