# Odt: invoice number

**URL:** <https://www.dolibarr.org/forum/t/odt-invoice-number/18426>\
**Category:** Financial modules\
**Created:** [January 24, 2020, 2:32pm UTC](https://www.dolibarr.org/forum/t/odt-invoice-number/18426 "2020-01-24T14:32:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![herrdeh](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/h/c2a13f/32.png) [@herrdeh](https://www.dolibarr.org/forum/u/herrdeh)\
**Post date:** [January 24, 2020, 2:32pm UTC](https://www.dolibarr.org/forum/t/odt-invoice-number/18426/1 "2020-01-24T14:32:56Z")

</div>

Hello everybody,  
I tried to modify my invoice numbers in my LibreOffice template to

> RE {yy}-{0000}

but always get just the figure eg. “4” (instead of “RE 20-0004”). Variants like

> RE\_{yy}-{0000}  
> {0000}

etc. didnt work either.  
I tried all of these variables:

> {object\_id}  
> {object\_ref}  
> {object\_ref\_ext}  
> {object\_ref\_customer}  
> {object\_ref\_supplier}  
> {object\_note\_private}  
> {object\_note\_public}  
> {object\_note}

but none works, all are only showing the plain number. Is it a bug? Help would be highly appreciated.

Cheers,  
Wolf

---

<div class="post-metadata">

**Author:** ![orkut](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/o/7feea3/32.png) [@orkut](https://www.dolibarr.org/forum/u/orkut)\
**Post date:** [February 29, 2020, 10:00am UTC](https://www.dolibarr.org/forum/t/odt-invoice-number/18426/2 "2020-02-29T10:00:54Z")

</div>

Hello,

You should define invoice number at invoice module customization and enable it.  
After that you should use {object\_ref} on your odt template.
