Module NumberWords: Difference between revisions

Jump to navigation Jump to search
Line 24: Line 24:


= Usage =
= Usage =
* If you are an end user: you can add following key
==If you are an end user==
you can add following key
{{NumberWordsKeys}}
{{NumberWordsKeys}}
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.
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.
Line 30: Line 31:
{{NumberWordsKeysODT}}
{{NumberWordsKeysODT}}


* If you are a developer: You can also use, anywhere in the code, the method  
==If you are a developer==
You can also use, anywhere in the code, the method  
<source lang="php">
<source lang="php">
$langs->getLabelFromNumber($mynumber,0|1)
$langs->getLabelFromNumber($mynumber,0|1)

Navigation menu