# V14.0.0 ODT misses company\_name and VAT ID if you have a Billing contact defined - BUG

**URL:** <https://www.dolibarr.org/forum/t/v14-0-0-odt-misses-company-name-and-vat-id-if-you-have-a-billing-contact-defined-bug/21207>\
**Category:** Financial modules\
**Tags:** Bug, Issue\
**Created:** [September 21, 2021, 10:42am UTC](https://www.dolibarr.org/forum/t/v14-0-0-odt-misses-company-name-and-vat-id-if-you-have-a-billing-contact-defined-bug/21207 "2021-09-21T10:42:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![merill](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@merill](https://www.dolibarr.org/forum/u/merill)\
**Post date:** [September 21, 2021, 10:42am UTC](https://www.dolibarr.org/forum/t/v14-0-0-odt-misses-company-name-and-vat-id-if-you-have-a-billing-contact-defined-bug/21207/1 "2021-09-21T10:42:41Z")

</div>

If you have a billing contact defined for a third party and you generate an invoice with an ODT template then the third party company name and the VAT ID are missing from the output. If you drop the billing contact role from the third party contact then all prints fine.

This happen with version 14.0.0.

Edit: I have been able to trace down the problem to function write\_file in /home/doymer/dolibarr/htdocs/core/modules/facture/doc/doc\_generic\_invoice\_odt.modules.php. If you have a billing contact then $array\_thirdparty is missing the vaues of some keys.

---

<div class="post-metadata">

**Author:** ![chiche](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@chiche](https://www.dolibarr.org/forum/u/chiche)\
**Post date:** [October 20, 2021, 4:04am UTC](https://www.dolibarr.org/forum/t/v14-0-0-odt-misses-company-name-and-vat-id-if-you-have-a-billing-contact-defined-bug/21207/2 "2021-10-20T04:04:59Z")

</div>

Hi all.  
Is there a workaround for that?

---

<div class="post-metadata">

**Author:** ![merill](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@merill](https://www.dolibarr.org/forum/u/merill)\
**Post date:** [October 21, 2021, 7:16am UTC](https://www.dolibarr.org/forum/t/v14-0-0-odt-misses-company-name-and-vat-id-if-you-have-a-billing-contact-defined-bug/21207/3 "2021-10-21T07:16:59Z")

</div>

So far not assigning a role to the contact.

---

<div class="post-metadata">

**Author:** ![Munchilu](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/munchilu/32/2701_2.png) [@Munchilu](https://www.dolibarr.org/forum/u/Munchilu)\
**Post date:** [October 23, 2021, 4:08am UTC](https://www.dolibarr.org/forum/t/v14-0-0-odt-misses-company-name-and-vat-id-if-you-have-a-billing-contact-defined-bug/21207/4 "2021-10-23T04:08:32Z")

</div>

As I remember this frustrating problem starts from v. 12. Maybe reviewing the relevant changes 11-\>12 versions will help to identify the bug.
