Jump to content

Phone Number on Invoices


Rob K

Recommended Posts

1. You could add this line: $_LANG['phonenumber'] ="12345678"; in your language file.

 

2. And add this line: $pdf->Cell(0,5,$_LANG["phonenumber"].' '.$phonenumber.'',0,1,'L','1');

under "Header Bar" in pdfconfig.php or somewhere you would like to have it.

Link to comment
Share on other sites

  • 2 weeks later...

Is there a way to add a custom field into the PDF invoice?

 

I have to display my customers VAT number on the invoice, for it to be a legal invoice.

 

I've got it displaying in the email invoice, but want to have it in the PDF invoice too. I created a custom field and it works in the email invoice.

 

Anyone care to asist me with this? It's a show stopper if i can't show their VAT number on the invoice...

 

That's if they have a VAT number of course... If not, it can be blank, since they won't use it to claim the VAT back anyway.

 

Thanks.

Link to comment
Share on other sites

Something like $clientsdetails["customfields1"] where 1 is the number of the custom field should do it.

 

Matt

 

I tried both $clientsdetails["customfields1"] and $clientsdetails["customfield1"] without anything. I can confirm that the custom field ID is indeed 1.

 

Any ideas? I need to get this VAT number displayed to remain legal.

 

Thanks.

Link to comment
Share on other sites

If someome has a bit of code to pull something out of the database and check the userid or something, i'm sure i can get the VAT number based on their user ID.

 

I want to go live before month end, so any help will be appreciated. So far, this is the last thing that needs to happen.

 

Thank you again.

Link to comment
Share on other sites

  • WHMCS CEO

You can put your business required information into the Pay To field in General Config > Invoices - then it's displayed on the invoice automatically. As for the customers VAT number, this is not something everyone requires so is best served through a custom field. You can then just add the field into the template file as discussed earlier in this thread.

 

Matt

Link to comment
Share on other sites

  • 7 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated