# Display Price as Text Format for Invoices Configuration Help Needed

**URL:** <https://www.dolibarr.org/forum/t/display-price-as-text-format-for-invoices-configuration-help-needed/31168>\
**Category:** Using my Dolibarr\
**Tags:** Windows, Help, Issue\
**Created:** [May 21, 2026, 4:46pm UTC](https://www.dolibarr.org/forum/t/display-price-as-text-format-for-invoices-configuration-help-needed/31168 "2026-05-21T16:46:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yassine](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/y/c89c15/32.png) [@Yassine](https://www.dolibarr.org/forum/u/Yassine)\
**Post date:** [May 21, 2026, 4:46pm UTC](https://www.dolibarr.org/forum/t/display-price-as-text-format-for-invoices-configuration-help-needed/31168/1 "2026-05-21T16:46:31Z")

</div>

Hi everyone,

I need help with a configuration issue. I want to display the price in words (text format) on my invoices, but I’m not sure how to set it up correctly.

If anyone knows how to configure this or has done it before, I’d really appreciate your guidance.

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/5/5d5b2b6d530ed3ba5017c2958437a0a8e1520fab.jpeg)

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [May 22, 2026, 10:23am UTC](https://www.dolibarr.org/forum/t/display-price-as-text-format-for-invoices-configuration-help-needed/31168/2 "2026-05-22T10:23:48Z")

</div>

I have never edited any of the invoice templates, and I think it is necessary. But not only do I think that you need to edit the template, I think you need a new feature in Dolibarr that translates the price to words.

---

<div class="post-metadata">

**Author:** ![MuhammadAli.Dev](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/m/3d9bf3/32.png) [@MuhammadAli.Dev](https://www.dolibarr.org/forum/u/MuhammadAli.Dev)\
**Post date:** [June 21, 2026, 5:16pm UTC](https://www.dolibarr.org/forum/t/display-price-as-text-format-for-invoices-configuration-help-needed/31168/3 "2026-06-21T17:16:15Z")

</div>

Dolibarr doesn’t have a native “amount in words” field out of the box, but it can be added cleanly without a core change — the approach depends on which PDF model you’re using:

**ODT templates (simplest approach):**  
The ODT substitution system doesn’t have a `{totalinwords}` variable by default, but you can add one via a small hook module. The hook `odtsubstitution` fires during ODT generation — you add your own key/value pair to the substitution array, converting the total using PHP (`NumberFormatter` class or a custom function), then reference it in your template like any other variable.

**PHP PDF templates (more control):**  
If you’re using a PHP-based PDF class (`pdf_crabe`, `pdf_cyan`, etc.), extend it in a custom module. Add a method converting the amount to words (PHP’s `NumberFormatter` or a library like `number_to_words`) and print it wherever your layout needs.

**Quickest option — DoliStore:** Several localized modules add this already. Search DoliStore for “amount in words”, “montant en lettres”, or “importe en letras” depending on your invoice language — some are quite lightweight and handle multiple currencies/languages.

Happy to sketch a working hook example if you’re going the custom route.

—  
Ali — Dolibarr AI Consultant / [SiliconBlaze.com](http://SiliconBlaze.com)
