| Previous topic :: Next topic |
| Author |
Message |
justinee
Joined: 20 Nov 2007
Posts: 17
|
| Posted: Tue Nov 20, 2007 4:21 am Post subject: Salesperson's Name on the invoice |
|
|
Hi,
I have assigned a invoice to a user (salesperson), I'd like to have the salesperson's name on the invoice when I create a PDF version of the invoice. But I can't find the clue where can I start. Can anyone help me? thanks. |
|
| Back to top |
|
prasad.a
Joined: 01 Aug 2007
Posts: 976
|
| Posted: Tue Nov 20, 2007 4:54 am Post subject: Re: Salesperson's Name on the invoice |
|
|
Hi justinee,
Start looking at modules/Invoice/CreatePDF.php and
include\fpdf\templates\body.php to get more idea on PDF creation for invoice.
Regards,
Prasad
vtiger Team |
|
| Back to top |
|
justinee
Joined: 20 Nov 2007
Posts: 17
|
| Posted: Tue Nov 20, 2007 5:36 am Post subject: Re: Salesperson |
|
|
Hi, Prasad
Thanks for your post. I did look at the files you mentioned, but it seems that the invoice table doesn't have any info of the salesperson. I can't find where the value does to when I assigned a invoice to someone.
And, could anyone tell me what files should I change if I want to add some filed to a invoice.
I'd like to add a "ship date" and "ship via" into the invoice. so that I can trace the shipment.
Thanks advance. |
|
| Back to top |
|
justinee
Joined: 20 Nov 2007
Posts: 17
|
| Posted: Tue Nov 20, 2007 2:17 pm Post subject: Re: Salesperson |
|
|
Searched this forum and find I can write a SQL query with inner join like:
select user_name from vtiger_users inner as a join vtiger_crmentity as b on a.id=b.smownerid where b.crmid = $invoiceID.
I'll try it tonight. |
|
| Back to top |
|
| |