-->
Welcome, Guest
Username: Password: Remember me
You can also tweak your setup of Dolibarr by setting hidden configurations found in Dolibarr Setup Other
  • Page:
  • 1
  • 2

TOPIC: Get order field to print on PDF

Get order field to print on PDF 2 months 3 weeks ago #37094

  • AngelBR
  • AngelBR's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 9
  • Karma: 0
Hi everyone,

I'd like to know how to get an specific field from the product module to print on PDF order.
I have very little (close to zero to be honest) php knowledge.

Can anyone please help me?
The administrator has disabled public write access.

Get order field to print on PDF 2 months 3 weeks ago #37095

  • h6585
  • h6585's Avatar
  • OFFLINE
  • Senior
  • Posts: 48
  • Thank you received: 1
  • Karma: 1
Hi,

Could you elaborate on what field you want to get printed.

Also, you can have a look at creating an attribute to be printed on the invoice.
The administrator has disabled public write access.

Get order field to print on PDF 2 months 3 weeks ago #37104

  • AngelBR
  • AngelBR's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 9
  • Karma: 0
Hi there, thank you for your reply.
I need the product accountancy code to be printed, and also another custom field that I created using CustomFields module. I'm using brazilian portuguese language on my system.
Best regards
The administrator has disabled public write access.

Get order field to print on PDF 2 months 3 weeks ago #37105

  • h6585
  • h6585's Avatar
  • OFFLINE
  • Senior
  • Posts: 48
  • Thank you received: 1
  • Karma: 1
Hi,

I believe you will have to create a customized ODT file to suit your needs. I am unaware of any other options. Will wait for others to reply.

Check this link to create your ODT

wiki.dolibarr.org/index.php/Create_an_ODT_document_template

Use the line_options_xxx tag to create and insert your custom attributes.

hope this helps
The administrator has disabled public write access.

Get order field to print on PDF 2 months 3 weeks ago #37107

  • AngelBR
  • AngelBR's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 9
  • Karma: 0
Ok, I'll try that.

Many thanks
The administrator has disabled public write access.

Get order field to print on PDF 2 months 2 weeks ago #37109

  • ksar
  • ksar's Avatar
  • OFFLINE
  • Moderator
  • Posts: 289
  • Thank you received: 77
  • Karma: 12
Hi,

Yes ODT is the way to do.

But be carefull CustomFields module is not Supported in Dolibarr since V4.0.
Since V4.0, Dolibarr has native Extrafield that is close to previous CustomFields module
What is your Dolibarr version ?
The administrator has disabled public write access.

Get order field to print on PDF 2 months 2 weeks ago #37110

  • AngelBR
  • AngelBR's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 9
  • Karma: 0
Version 9.0.2, running on webserver.
I'll uninstall CustomFields module!

Thank you!
The administrator has disabled public write access.

Get order field to print on PDF 2 months 2 weeks ago #37129

  • AngelBR
  • AngelBR's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 9
  • Karma: 0
Hello everyone,
I created an odt file, uploaded to server, went to order module and set it to standard. Then I tried to create order draft and layout using this file is all broken.
Should I convert it to pdf? If so, how to do it and what to do next? I'm stuck :-(
Any help is greatly appreciated.
The administrator has disabled public write access.

Get order field to print on PDF 2 months 2 weeks ago #37131

  • h6585
  • h6585's Avatar
  • OFFLINE
  • Senior
  • Posts: 48
  • Thank you received: 1
  • Karma: 1
Hi,

Can you upload a the odt file and the result file for better understanding.
The administrator has disabled public write access.

Get order field to print on PDF 2 months 2 weeks ago #37132

  • AngelBR
  • AngelBR's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 9
  • Karma: 0

File Attachment:

File Name: template_order.odt
File Size: 16 KB


File Attachment:

File Name: PROV7_order.odt
File Size: 34 KB

Sure!
Last Edit: 2 months 2 weeks ago by AngelBR.
The administrator has disabled public write access.

Get order field to print on PDF 2 months 2 weeks ago #37133

  • ksar
  • ksar's Avatar
  • OFFLINE
  • Moderator
  • Posts: 289
  • Thank you received: 77
  • Karma: 12
Hi,

Everthing seems to work perfectly !
You should now work on your order document template.

When you use ODT template, Dolibarr will create ODT documents.
After you can use a ODT2PDF feature but it is quiet difficilt to use.

I you want pdf at the end, better to go with pdf php templates.
The administrator has disabled public write access.

Get order field to print on PDF 2 months 2 weeks ago #37136

  • AngelBR
  • AngelBR's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 9
  • Karma: 0
Yeah... this is where my problem starts! I have no idea how to edit the php file. :-(
The administrator has disabled public write access.

Get order field to print on PDF 2 months 2 weeks ago #37140

  • h6585
  • h6585's Avatar
  • OFFLINE
  • Senior
  • Posts: 48
  • Thank you received: 1
  • Karma: 1
We are in the same boat here.

I have currently created ODT formats as per my requirements and using them right now. I download the ODT file and then export it as a pdf. Long process but gets the work done.

Working on a php file version while at the same time exploring the ODT2PDF option.
The administrator has disabled public write access.

Get order field to print on PDF 2 months 2 weeks ago #37157

  • nazeer
  • nazeer's Avatar
  • OFFLINE
  • Expert
  • admin@cynergy.solutions
  • Posts: 142
  • Thank you received: 15
  • Karma: 5
The 1st template is great.
for better understand change the name to template1.odt or something different to default available template.

The 2nd file you uploaded is the default template you selected to generate odt.
before generate odt document you need to select the 1st odt template.
The administrator has disabled public write access.

Get order field to print on PDF 2 months 2 weeks ago #37160

  • AngelBR
  • AngelBR's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 9
  • Karma: 0
Thank you Nazeer, I'll try that.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.148 seconds