31,034
edits
mNo edit summary |
m (→Usage) |
||
| Line 25: | Line 25: | ||
= Usage = | = Usage = | ||
* If you are an end user: add the string __TOTAL_TTC_WORDS__, __TOTAL_HT_WORDS__, __TOTAL_VAT_WORDS__ 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 are an end user: add the string __TOTAL_TTC_WORDS__, __TOTAL_HT_WORDS__, __TOTAL_VAT_WORDS__ 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 are a | * 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) | ||
</source> | </source> | ||
to get full text string of a number or amount. | to get full text string of a number (if second parameter is 0) or an amount (if second parameter is 1). | ||
= Development = | = Development = | ||
{{TemplateModSavannahEn}} | {{TemplateModSavannahEn}} | ||