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
For this purpose you need:
Unzip under htdocs
it will create a folder -> numberwords
then check on modules to activate it.
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
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.
Where did you download the zip ???
You should have in the “custom” directory a directory named “numberwords”
With this inside
I don’t have the same files, I downloaded from this url :
https://www.dolistore.com/fr/modules/17-NumberWords.html
Can you send me the real url to this module?
Thank you
Thank you ksar this module works perfectly
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);
}
}
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);
}
}
Thanks for sharing! This helped a lot. There’s a new version. 5.0.2
Cheers