Add Extrafields on PDF Models: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Tag: 2017 source edit
Line 1: Line 1:
{{TemplateDocDevEn}}
{{TemplateDocDevEn}}


This page give you some advises how to integrate extrafields into PDF models of Dolibarr.
This page give you some advises how to integrate complementary attributes (extrafields) into PDF models of Dolibarr.
 
This is a exemple and needs to be adapted to your needs.
This is a exemple and needs to be adapted to your needs.
It is based on billing document but it will be the same for the others modules
It is based on billing document but it will be the same for the others modules


= Prerequisite =
=Prerequisite=
You can read the following links before, some paragraph will come from these pages :
You can read the following links before, some paragraph will come from these pages :
*[[Create a PDF document template]]
*[[Create a PDF document template]]
*[[Extrafields]]
*[[Extrafields]]


= Create a extrafiled =
=Create a Complementary Attributes on Invoices Module=
First you need to create your extrafiled.
First you need to create your complementary attribute.
This extrafield can be of two types :
This complementary attributes can be of two types :
* Module extrafiled
 
* Line extrafiled
*Module complementary attribute
*Line complementary attribute
 
== Access to the configuration ==
Go on the Dolibarr application > Setup > Modules/Applications
Click on the parameter icon [[File:Cog.png]] of the Invoices module
Then you can create Module or Line complementary attribute
 
== Module complementary attribute ==
Go on the Complementary attributes (invoices) tab
[[File:Invoices module setup.png|thumb]]
Put the all the mandatory fields, especially the Attribute code that will be used in the next chapters


Go on the Dolibarr application
== Line complementary attribute ==
Go on the Complementary attributes (lines) tab
[[File:Invoices module setup line.png|thumb]]
Put the all the mandatory fields, especially the Attribute code that will be used in the next chapters
676

edits

Navigation menu