Multi-currency tags for .ODT templates

Hello there,

I read many topics regarding available currency tags for .ODT templates in (proposals, orders, invoice…) and did not find the right answer. Also at https://wiki.dolibarr.org/index.php/Create_an_ODT_document_template - nothing for currency tags specified yet.
I found in php code following working tags for objects and lines in objects and try them:
for objects:
object_fk_multicurrency= {object_fk_multicurrency}
object_multicurrency_code= {object_multicurrency_code}
object_multicurrency_tx= {object_multicurrency_tx}
object_multicurrency_total_ht= {object_multicurrency_total_ht}
object_multicurrency_total_tva= {object_multicurrency_total_tva}
object_multicurrency_total_ttc= {object_multicurrency_total_ttc}

for lines:

{line_multicurrency_code} not working correct - shows main company currency instead of currency code for the object
{line_multicurrency_total_ttc}
{line_multicurrency_total_tva}
{line_multicurrency_total_ht}

I hope moderators will test and write in WIKI and include in .odt sample files with Dolibarr installation.

And one request
There are no tags for
currency discount amount like {object_total_discount_ht}. If it is possible in new builds to include {object_multicurrency_total_discount_ht}
These tags are printed as numbers - not as price, pls fix these tags as price2num ouput.

Thanks in advance and Happy Holidays to all.

1 Like

Same issue in odt.

but i found in pdf its printing in foreign currency.
eg… I have company default currency - Singapore Dollars
Customer default currency - US dollars
While making proposal, order or invoices we get both currency with corresponding conversion rate, when generate odt it prints only company currency not customer currency but in PDF it prints customer currency…

Need odt to print in customer currency.
Any help?

Any Updates from experts…

Hello, seems I have same issue since I updated to Dolibarr 13.
When I issue PO to suppliers in PDF with muscadet template, supplier currency appears correctly.
But on mt ODT template, whatever place I enter “_multicurrency_code” in line or object, I get nothing (blank).
This was working OK on V12.
Any idea why and how to fix ?
Thanks folks