Patsjoelie Posted August 28, 2009 Share Posted August 28, 2009 Hi all, I have created a custom client field "BTWnr" where i can put the clients VAT number. I'm trying to get this field in my invoice PDF template, without luck. $pdf->Cell(0,4,$clientsdetails["BTWnr"],0,1,'L'); Gives me nothing. Does a custom field have a prefix? If so, what? Or else, how do i get my clients VAT number on my PDF invoices? thanks in advance for any help on this! 0 Quote Link to comment Share on other sites More sharing options...
atDev Posted August 28, 2009 Share Posted August 28, 2009 Hi, Did you try dumping the contents of $clientdetails to see its contents? 0 Quote Link to comment Share on other sites More sharing options...
Patsjoelie Posted August 31, 2009 Author Share Posted August 31, 2009 Hi atDev, Being not much of a programmer, how do i do this dump? 0 Quote Link to comment Share on other sites More sharing options...
atDev Posted August 31, 2009 Share Posted August 31, 2009 I believe just by adding {debug} to the template file. 0 Quote Link to comment Share on other sites More sharing options...
quietfinn Posted August 31, 2009 Share Posted August 31, 2009 Hi all,I have created a custom client field "BTWnr" where i can put the clients VAT number. I'm trying to get this field in my invoice PDF template, without luck. $pdf->Cell(0,4,$clientsdetails["BTWnr"],0,1,'L'); Gives me nothing. Does a custom field have a prefix? If so, what? Or else, how do i get my clients VAT number on my PDF invoices? thanks in advance for any help on this! This should work: $pdf->Cell(0,4,$clientsdetails["customfields1"],0,1,'L'); (if it is the 1st custom client field) 0 Quote Link to comment Share on other sites More sharing options...
Patsjoelie Posted September 9, 2009 Author Share Posted September 9, 2009 Sorry for the late reply guys, @quietfinn: Problem solved. Your solution did it 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.