676
edits
mNo edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
| Line 28: | Line 28: | ||
Go on the Complementary attributes (invoices) tab | Go on the Complementary attributes (invoices) tab | ||
[[File:Invoices module setup.png|none|thumb]] | [[File:Invoices module setup.png|none|thumb]] | ||
Put the all the mandatory fields, especially the Attribute code that will be used in the next chapters | Put the all the mandatory fields, especially the '''Attribute code''' that will be used in the next chapters | ||
You should end up with something like that : | You should end up with something like that : | ||
| Line 36: | Line 36: | ||
Go on the Complementary attributes (lines) tab | Go on the Complementary attributes (lines) tab | ||
[[File:Invoices module setup line.png|none|thumb]] | [[File:Invoices module setup line.png|none|thumb]] | ||
Put the all the mandatory fields, especially the Attribute code that will be used in the next chapters | Put the all the mandatory fields, especially the '''Attribute code''' that will be used in the next chapters | ||
You should end up with something like that : | You should end up with something like that : | ||
| Line 42: | Line 42: | ||
==Verification on the Invoices Module== | ==Verification on the Invoices Module== | ||
Clic on Billing|Payement and select New invoice | Clic on '''Billing|Payement''' and select '''New invoice''' | ||
If you have created a Module complementary attribute, you should have that : | If you have created a Module complementary attribute, you should have that : | ||
| Line 49: | Line 49: | ||
If you have created a Line complementary attribute, you should have that : | If you have created a Line complementary attribute, you should have that : | ||
[[File:Invoices module line extrafield.png|none|thumb]] | [[File:Invoices module line extrafield.png|none|thumb]] | ||
=Create a new invoice template= | |||
All the steps are describes there [[Create a PDF document template]] | |||
* Open the '''core\modules\facture\doc\''' directory | |||
* Copy the '''pdf_crabe.modules.php''' | |||
* Rename the copy as '''pdf_my_template.modules.php''' | |||
* Edit and make the following changes in the code: | |||
# Rename 'class pdf_crabe' to 'class pdf_my_template' | |||
# Rename constant '$this->name = "crabe";' to '$this->name = "my_template"; | |||
# Save file. Now the template will be available in the list of models in Dolibarr. | |||
# Test this model (see previous section) before going further ... | |||
edits