Difference between revisions of "Module NumberWords"

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
m (Import interlang links (links to translated versions of this page in other languages) from Multi Language Manager table.)
Line 1: Line 1:
 +
<!-- BEGIN origin interlang links -->
 +
<!-- You can edit this section but do NOT remove these comments
 +
    Links below will be automatically replicated on translated pages by PolyglotBot -->
 +
[[fr:Module_NumberWords_FR]]
 +
[[es:Módulo_NumberWords]]
 +
<!-- END interlang links -->
 +
 
[[Category:Complementary modules]]
 
[[Category:Complementary modules]]
 
[[Category:NumberWords]]
 
[[Category:NumberWords]]

Revision as of 13:21, 23 July 2019

Informations

Module name Number to Words
Editor / Editeur NLTechno - www.nltechno.com
Download or buy page / Page achat ou téléchargement External module - www.dolistore.com
Status / Statut / Estado Stable
Prerequisites / Prérequis

Dolibarr min version: See on Dolistore    Dolibarr max version: See on Dolistore

Last update date / Date mise à jour fiche / Fecha última actualización 2019-07-23
Note / Nota

Features

With this module, Dolibarr is able to translate decimal number or amount into full text strings ("110 dollars" will give "one hundred and ten dollars")

Install

  • Download archive file of module (.zip file) from web site www.dolistore.com or from any other source.
  • Install module into the /custom folder of Dolibarr:
    • Go to Home - Setup - Modules - Deploy/install external app/module
    • Upload the file. Note: If it fails because upload from this page has been locked by your web hosting provider, you can manually unzip the file into the /custom directory from command line: Go into the /custom directory and uncompress file with command unzip modulefile.zip then check that the directory with the nameof the module is inside the /custom directory. If into a subdirectory, just move it into /custom.
  • Module should be ready to be activated and used.

Setup

To use this module, you must first enable it using an administrator account, via the menu option "Home - Setup - Modules".

Choose the tab where the module is listed. Then click on "Activate".

The module is now activated.

If a cog icon appears Cog circle.svg on module thumb or at end of the line of the module, click on it to access the setup page specific to the module.

Then see "Usage"

Usage

If you are an end user

you can add following key

  • __AMOUNT_TEXT__
  • __AMOUNT_EXCL_TAX_TEXT__
  • __AMOUNT_VAT_TEXT__
  • __AMOUNT_MULTICURRENCY_TEXT__
  • __AMOUNT_MULTICURRENCY_EXCL_TAX_TEXT__
  • __AMOUNT_MULTICURRENCY_VAT_TEXT__

in any "free text for PDF" area in setup of invoices, orders, proposals... This string will be replaced with the amount with tax, without tax or for vat in full clear alphabetic text.

If you use ODT templates, the key to use inside your ODT file are

  • {__AMOUNT_TEXT__}
  • {__AMOUNT_EXCL_TAX_TEXT__}
  • {__AMOUNT_VAT_TEXT__}
  • {__AMOUNT_MULTICURRENCY_TEXT__}
  • {__AMOUNT_MULTICURRENCY_EXCL_TAX_TEXT__}
  • {__AMOUNT_MULTICURRENCY_VAT_TEXT__}

If you are a developer

You can also use, anywhere in the code, the method

$langs->getLabelFromNumber($mynumber,0|1)

to get full text string of a number (if second parameter is 0) or an amount (if second parameter is 1).

Development

The development of this module is not included inside the standard GIT repository of Dolibarr but inside a repository dedicated to modules not supported by the Dolibarr development team but supported by DoliCloud team:

Note that the code of all modules developed by DoliCloud team are presents in the same repository (1 sub-directory of htdocs = 1 module). They are all Open Source modules.