Rob K Posted September 3, 2007 Share Posted September 3, 2007 Hi I would my phone number on my PDF invoices, can this be done and how? Thanks Rob 0 Quote Link to comment Share on other sites More sharing options...
gismo Posted September 4, 2007 Share Posted September 4, 2007 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. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted September 4, 2007 WHMCS CEO Share Posted September 4, 2007 Edit the pdfconfig.php file in the includes folder and add it there is the simple answer! Matt 0 Quote Link to comment Share on other sites More sharing options...
Rob K Posted September 4, 2007 Author Share Posted September 4, 2007 Thanks Matt, done as you suggested 0 Quote Link to comment Share on other sites More sharing options...
gismo Posted September 4, 2007 Share Posted September 4, 2007 Edit the pdfconfig.php file in the includes folder and add it there is the simple answer! Matt Yes it is, if you don't have a multilanguage site. 0 Quote Link to comment Share on other sites More sharing options...
generic Posted September 4, 2007 Share Posted September 4, 2007 i didnt know that phone numbers changed depending on language. 0 Quote Link to comment Share on other sites More sharing options...
Iceman Posted September 6, 2007 Share Posted September 6, 2007 i didnt know that phone numbers changed depending on language. Yup... if you live in AUS... all the numbers are upside down :wink: 0 Quote Link to comment Share on other sites More sharing options...
rheid Posted September 19, 2007 Share Posted September 19, 2007 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. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted September 19, 2007 WHMCS CEO Share Posted September 19, 2007 Something like $clientsdetails["customfields1"] where 1 is the number of the custom field should do it. Matt 0 Quote Link to comment Share on other sites More sharing options...
rheid Posted September 19, 2007 Share Posted September 19, 2007 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. 0 Quote Link to comment Share on other sites More sharing options...
rheid Posted September 20, 2007 Share Posted September 20, 2007 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. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted September 20, 2007 WHMCS CEO Share Posted September 20, 2007 It appears for the first field, you might need to use a 0 instead of 1 Matt 0 Quote Link to comment Share on other sites More sharing options...
rheid Posted September 20, 2007 Share Posted September 20, 2007 Thanks Matt. That did the trick. Perhaps it would be useful to add this information to the manual here : v3manual.whmcs.com/display.php?id=106 0 Quote Link to comment Share on other sites More sharing options...
xperience Posted September 24, 2007 Share Posted September 24, 2007 As putting your VAT number on invoices is a legal requirement for VAT registered companies, can we put in a feature request for this? Maybe under general config, you could input your VAT number then the PDF invoice could have a line added to display it. Simon 0 Quote Link to comment Share on other sites More sharing options...
rheid Posted September 24, 2007 Share Posted September 24, 2007 I agree, this is a legal requirement and should be easily enabled. The invoices (PDF or standard) should show your own VAT number and also the customers, if it was filled in. 0 Quote Link to comment Share on other sites More sharing options...
Sitecenter Posted September 24, 2007 Share Posted September 24, 2007 And they should also show your company regsitration number (if Ltd) and the registered office address 0 Quote Link to comment Share on other sites More sharing options...
oempire Posted September 25, 2007 Share Posted September 25, 2007 Showing your ABN is also an AU requirement, easily manually added though 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted September 25, 2007 WHMCS CEO Share Posted September 25, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
cyberneticos Posted May 5, 2008 Share Posted May 5, 2008 just worked for me,. and also used $clientsdetails.customfields1 in the viewinvoice.tpl and works like a champ too this is fun 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.