add vat number to proposal template

Greetings.

I’m customising my own version of proposal template in:
htdocs/core/modules/propale/doc/pdf_azur.modules.php

What’s the best way to get the VAT number? (llx_societe.siren in the D:sunglasses:.

Is there any function already built to get that easily into the pdf template? Or shall I just add my own function to query the db?

I have experience in PHP and FPDF, but I’m not familiar with dolibarr code, so trying not to reinvent the wheel here.

Thanks,
Bruno

Hello Bgravato,
You can easily get VAT number into Invoice without code. This is what you do:
Go to:
Home --> Setup --> PDF
In PDF scroll to the bottom you will see:
Add more details into footer of PDF files, like your company address, or manager names (to complete professional ids, company capital and VAT number)
Choose what you want then save.
Also as an alternative you can add free text to invoices:
Go to; Home --> Setup --> Modules --> Invoices
Click on the setup of invoices where you will see a section for adding free text:
Hope this helps

1 Like

Sorrry for proposals same procedure you can add free text to the proposal:
Home --> Setup --> Modules --> Proposals
Click on setup where you will see option of adding free text

1 Like

Thank you for you reply.

I meant the client’s (third party) VAT number, not our company’s VAT number.
So this needs to be dynamically inserted from the database (from the client’s data).

I think your solution doesn’t work in this case, correct?