0
How to get the customer reference / project number on first page of invoice (openPDF)
We're having some trouble with invoices bouncing back from our customers because the reference/project number is on the second page of the invoice. We're trying to get the number on the first page of the invoice now, but the code doesn't seem to work. The code we used is: $task.project.getCustomerProjectNumber(). This works on the second page, but not on the first page of the invoice. Does anyone know how to resolve this?
Thanks in advance for thinking along!
Customer support service by UserEcho
Hi Benthe,
I am not familiar with the openPDF templates, but my guess is that you are editing the invoice template and the general invoice info on the first page. Since this is looking at the invoice information, you should probably loop through the tasks in your invoice and grab the customer reference numbers. I know you can do this in the BIRT templates, but no idea about openPDF.
Hello Benthe.
Same situation as Wim_ki, not familiar with OpenPDF.
On the second page, your scope is the task itself.
The first page is focused on the invoice itself (if I am not wrong), so in the first page, you are going to have to loop all the tasks attached to the invoice and then show the task.getCustomerProjectNumber() where you want to show it.
Hope that guided you to the solution.
My best regards.
@wim_ki @juan how do you loop it with BIRT? Maybe I can try to recreate that with html code in openPDF. Thanks for your help and your replies!
The BIRT templates creator does it itself, I don't really change anything.
If you explain to me a little bit more about HTML coding, I might be able to help you.
Don't hesitate in writing an email to me: juan@comunica.dk
My best regards.