# ERROR – Invoice from multiple orders

**URL:** <https://www.dolibarr.org/forum/t/error-invoice-from-multiple-orders/23547>\
**Category:** CRM/SRM Modules\
**Tags:** v16\
**Created:** [March 30, 2023, 7:00am UTC](https://www.dolibarr.org/forum/t/error-invoice-from-multiple-orders/23547 "2023-03-30T07:00:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alga](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/a/6f9a4e/32.png) [@alga](https://www.dolibarr.org/forum/u/alga)\
**Post date:** [March 30, 2023, 7:00am UTC](https://www.dolibarr.org/forum/t/error-invoice-from-multiple-orders/23547/1 "2023-03-30T07:00:26Z")

</div>

Hello, I have updated Dolibarr to v. 16.0.4, I think there is a bug in the generation of an invoice starting from multiple orders (“ORDERS TO BE INVOICED” button in the “CUSTOMER” section of the database).  
The error appears following the path below:

1. customer “X” \> 2. “ORDERS TO BE INVOICED” button \> 3. selection of the COs to be invoiced (“CONFIRM” button at the top) \> 4. Create an invoice for master data = Yes; Invoices validated = Yes \> 5. ERROR [Unknown column “total” in “field list”]  
If in point 4. you choose:  
Create an invoice for master data = Yes; Validated invoices = No  
The invoice is created and only the “Sectional” error appears, even if the customer has the correct sectional settings.  
The serious error that does not generate the invoice would seem to be linked to the modification of the name of the field “llx\_facture.total” in DB Dolibarr, which has become “llx\_facture.total\_ht”; I’m afraid there is a bug in the code due to this change in the DB because I had the same problem in the scripts I created to directly extract the invoice data from the DB (I had to change the field name from “total” to "total\_ht ” in my scripts).  
Thanks in advance for your reply.  
Alberto

---

<div class="post-metadata">

**Author:** ![eldy](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/eldy/32/12_2.png) [@eldy](https://www.dolibarr.org/forum/u/eldy)\
**Post date:** [March 30, 2023, 10:27am UTC](https://www.dolibarr.org/forum/t/error-invoice-from-multiple-orders/23547/2 "2023-03-30T10:27:54Z")

</div>

I did a test with 16.0.5 and i have no error.  
The field total was renamed into total\_ht into database. But dolibarr code has also been modified. May be you are using a external module not updated for 16.0 ?

---

<div class="post-metadata">

**Author:** ![alga](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/a/6f9a4e/32.png) [@alga](https://www.dolibarr.org/forum/u/alga)\
**Post date:** [April 17, 2023, 1:15pm UTC](https://www.dolibarr.org/forum/t/error-invoice-from-multiple-orders/23547/3 "2023-04-17T13:15:29Z")

</div>

Thank you very much,  
probably it’s the Italian electronic invoicing module.
