# How can i add Numbers to Words in invoice? SOLVED

**URL:** <https://www.dolibarr.org/forum/t/how-can-i-add-numbers-to-words-in-invoice-solved/17257>\
**Category:** Using my Dolibarr\
**Created:** [January 18, 2019, 3:36pm UTC](https://www.dolibarr.org/forum/t/how-can-i-add-numbers-to-words-in-invoice-solved/17257 "2019-01-18T15:36:48Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbahjaoui](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/sbahjaoui/32/539_2.png) [@sbahjaoui](https://www.dolibarr.org/forum/u/sbahjaoui)\
**Post date:** [January 18, 2019, 3:36pm UTC](https://www.dolibarr.org/forum/t/how-can-i-add-numbers-to-words-in-invoice-solved/17257/1 "2019-01-18T15:36:48Z")

</div>

Hi,  
Please i need your help inorder to add numbers to words on invoice pdf.  
I used module Numbers\_Words-0.16.1 on my version 8.0.4 but doesn’t works (even if i put it on folder custom) the module doesn’t appear in modules.  
There is other solution to add functions php directly to dolibarr?  
Thank you

---

<div class="post-metadata">

**Author:** ![Peter\_A\_Gebhardt](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/peter_a_gebhardt/32/377_2.png) [@Peter\_A\_Gebhardt](https://www.dolibarr.org/forum/u/Peter_A_Gebhardt)\
**Post date:** [January 18, 2019, 5:42pm UTC](https://www.dolibarr.org/forum/t/how-can-i-add-numbers-to-words-in-invoice-solved/17257/2 "2019-01-18T17:42:54Z")

</div>

For this purpose you need:

[https://wiki.dolibarr.org/index.php/Module\_NumberWords](https://wiki.dolibarr.org/index.php/Module_NumberWords)

---

<div class="post-metadata">

**Author:** ![sbahjaoui](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/sbahjaoui/32/539_2.png) [@sbahjaoui](https://www.dolibarr.org/forum/u/sbahjaoui)\
**Post date:** [January 19, 2019, 8:06pm UTC](https://www.dolibarr.org/forum/t/how-can-i-add-numbers-to-words-in-invoice-solved/17257/3 "2019-01-19T20:06:16Z")

</div>

Hi,  
I did all steps but nothing hapened, the module doesn’t apear in modules.

 ![number-words.png](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/6/62da3ee39f92c04e66c522d2b1c01737552f1fdb.png)

 ![nombre-words-2.png](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/6/6fe052286ac550d05c694c31fd45092f081c9cef.png)

---

<div class="post-metadata">

**Author:** ![nazeer](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/nazeer/32/37_2.png) [@nazeer](https://www.dolibarr.org/forum/u/nazeer)\
**Post date:** [January 22, 2019, 11:22am UTC](https://www.dolibarr.org/forum/t/how-can-i-add-numbers-to-words-in-invoice-solved/17257/4 "2019-01-22T11:22:50Z")

</div>

Unzip under htdocs  
it will create a folder -\> numberwords  
then check on modules to activate it.

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [January 22, 2019, 1:46pm UTC](https://www.dolibarr.org/forum/t/how-can-i-add-numbers-to-words-in-invoice-solved/17257/5 "2019-01-22T13:46:44Z")

</div>

You need to unzip in custom but the folder name shouldn’t have \_ or CAPS  
The folder name should be numberwords with a core directory in it.

PS : Visiblement tu es français, le support dolibarr en français c’est la : [https://www.dolibarr.fr/forum](https://www.dolibarr.fr/forum)

---

<div class="post-metadata">

**Author:** ![sbahjaoui](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/sbahjaoui/32/539_2.png) [@sbahjaoui](https://www.dolibarr.org/forum/u/sbahjaoui)\
**Post date:** [January 23, 2019, 11:17am UTC](https://www.dolibarr.org/forum/t/how-can-i-add-numbers-to-words-in-invoice-solved/17257/6 "2019-01-23T11:17:41Z")

</div>

Hi again,  
I unziped it in custom with folder name numberwords, but when i came back to admin modules nothing apear, i did the same thing in htdocs folder and got the same result.  
Maybe this module doesn’t work with de last version dolibarr.  
Thank you.

![nw1.png](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/9/95a754075046f49f99220397eb582c1f12a963ac.png)

![nw2.png](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/f/fd49db8e7b30b8b43e4a0d85a84fd28c1d9ef659.png)

![nw3.png](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/3/3e0152990ee926e301177e6015cfa6419beda6ad.png)

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [January 23, 2019, 4:07pm UTC](https://www.dolibarr.org/forum/t/how-can-i-add-numbers-to-words-in-invoice-solved/17257/7 "2019-01-23T16:07:16Z")

</div>

Where did you download the zip ???

You should have in the “custom” directory a directory named “numberwords”

With this inside

![Capture.png](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/7/7e8f96a524f82bbd6cc9b77e9c53b8b3e28e3383.png)

---

<div class="post-metadata">

**Author:** ![sbahjaoui](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/sbahjaoui/32/539_2.png) [@sbahjaoui](https://www.dolibarr.org/forum/u/sbahjaoui)\
**Post date:** [January 23, 2019, 4:27pm UTC](https://www.dolibarr.org/forum/t/how-can-i-add-numbers-to-words-in-invoice-solved/17257/8 "2019-01-23T16:27:56Z")

</div>

I don’t have the same files, I downloaded from this url :  
[https://www.dolistore.com/fr/modules/17-NumberWords.html](https://www.dolistore.com/fr/modules/17-NumberWords.html)  
Can you send me the real url to this module?  
Thank you

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [January 24, 2019, 9:54am UTC](https://www.dolibarr.org/forum/t/how-can-i-add-numbers-to-words-in-invoice-solved/17257/9 "2019-01-24T09:54:58Z")

</div>

[https://www.dolistore.com/fr/modules/17-NumberWords.html](https://www.dolistore.com/fr/modules/17-NumberWords.html)

[module\_numberwords-5.0.zip](https://www.dolibarr.org/forum/uploads/short-url/d2dKwQzUNybrO9Pu6MPnLeOO3ZF.zip) (267 KB)

---

<div class="post-metadata">

**Author:** ![sbahjaoui](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/sbahjaoui/32/539_2.png) [@sbahjaoui](https://www.dolibarr.org/forum/u/sbahjaoui)\
**Post date:** [January 24, 2019, 10:07am UTC](https://www.dolibarr.org/forum/t/how-can-i-add-numbers-to-words-in-invoice-solved/17257/10 "2019-01-24T10:07:05Z")

</div>

Thank you ksar this module works perfectly

---

<div class="post-metadata">

**Author:** ![sbahjaoui](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/sbahjaoui/32/539_2.png) [@sbahjaoui](https://www.dolibarr.org/forum/u/sbahjaoui)\
**Post date:** [January 24, 2019, 11:00am UTC](https://www.dolibarr.org/forum/t/how-can-i-add-numbers-to-words-in-invoice-solved/17257/11 "2019-01-24T11:00:00Z")

</div>

# I don’t want to add manualy for each note public **TOTAL\_TTC\_WORDS** for propal and invoice that’s why iwould like to add code into “pdf\_azur.modules.php” this is my code : $langs-\>getLabelFromNumber($mynumber,0|1) when i added it i got zero

# // Affiche notes $notetoshow=empty($object-\>note\_public)? $langs-\>getLabelFromNumber($mynumber,0|1):$object-\>note\_public; if (! empty($conf-\>global-\>MAIN\_ADD\_SALE\_REP\_SIGNATURE\_IN\_NOTE)) { // Get first sale rep if (is\_object($object-\>thirdparty)) { $salereparray=$object-\>thirdparty-\>getSalesRepresentatives($user); $salerepobj=new User($this-\>db); $salerepobj-\>fetch($salereparray[0][‘id’]); if (! empty($salerepobj-\>signature)) $notetoshow=dol\_concatdesc($notetoshow, $salerepobj-\>signature); } }

---

<div class="post-metadata">

**Author:** ![sbahjaoui](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/sbahjaoui/32/539_2.png) [@sbahjaoui](https://www.dolibarr.org/forum/u/sbahjaoui)\
**Post date:** [January 24, 2019, 11:10am UTC](https://www.dolibarr.org/forum/t/how-can-i-add-numbers-to-words-in-invoice-solved/17257/12 "2019-01-24T11:10:39Z")

</div>

# I fixed my problem everything is ok now thank you, here is my code to share with you: If note empty write total ttc word

# // Affiche notes $notetoshow=empty($object-\>note\_public)? $langs-\>getLabelFromNumber($object-\>total\_ttc,0|1):$object-\>note\_public; if (! empty($conf-\>global-\>MAIN\_ADD\_SALE\_REP\_SIGNATURE\_IN\_NOTE)) { // Get first sale rep if (is\_object($object-\>thirdparty)) { $salereparray=$object-\>thirdparty-\>getSalesRepresentatives($user); $salerepobj=new User($this-\>db); $salerepobj-\>fetch($salereparray[0][‘id’]); if (! empty($salerepobj-\>signature)) $notetoshow=dol\_concatdesc($notetoshow, $salerepobj-\>signature); } }

---

<div class="post-metadata">

**Author:** ![canfest](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/canfest/32/67_2.png) [@canfest](https://www.dolibarr.org/forum/u/canfest)\
**Post date:** [April 18, 2020, 7:36pm UTC](https://www.dolibarr.org/forum/t/how-can-i-add-numbers-to-words-in-invoice-solved/17257/13 "2020-04-18T19:36:47Z")

</div>

Thanks for sharing! This helped a lot. There’s a new version. 5.0.2

Cheers
