# Little dev tips for extrafields

**URL:** <https://www.dolibarr.org/forum/t/little-dev-tips-for-extrafields/29860>\
**Category:** Developing for Dolibarr\
**Created:** [January 19, 2025, 3:07pm UTC](https://www.dolibarr.org/forum/t/little-dev-tips-for-extrafields/29860 "2025-01-19T15:07:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![caos30](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/caos30/32/6733_2.png) [@caos30](https://www.dolibarr.org/forum/u/caos30)\
**Post date:** [January 20, 2025, 10:09pm UTC](https://www.dolibarr.org/forum/t/little-dev-tips-for-extrafields/29860/4 "2025-01-20T22:09:56Z")

</div>

Ah, you’re right, it probably refers to that.

In that case:

- I’m not sure if the concept of company “extrafields” exists
- one way to solve it would be by editing the invoice templates, or creating a new modified version to use when needed (that’s very convenient, I use it often)
- the other way would be to create the “extrafields” as extra attribute fields for INVOICES and set default values according to what you need to appear, which will normally always be the same.

In this last case, you need to make sure those fields appear in the PDF, and that’s well explained here:

> [@Extrafield Templates Invoice](https://www.dolibarr.org/forum/t/extrafield-templates-invoice/29804/6):
>
> hey. You posted a picture in non english, so I have difficulty to understand what is on your PDF. But maybe one of your fields needs to be not 0, but 1, 2, 3 or 4.

Best regards

---

_[View the full topic](https://www.dolibarr.org/forum/t/little-dev-tips-for-extrafields/29860)._
