# Allowing negative quantities in invoice lines

**URL:** <https://www.dolibarr.org/forum/t/allowing-negative-quantities-in-invoice-lines/22072>\
**Category:** Using my Dolibarr\
**Tags:** Quantities, Products, Invoices\
**Created:** [March 24, 2022, 3:47pm UTC](https://www.dolibarr.org/forum/t/allowing-negative-quantities-in-invoice-lines/22072 "2022-03-24T15:47:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marco82](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/m/bbe5ce/32.png) [@Marco82](https://www.dolibarr.org/forum/u/Marco82)\
**Post date:** [March 24, 2022, 3:47pm UTC](https://www.dolibarr.org/forum/t/allowing-negative-quantities-in-invoice-lines/22072/1 "2022-03-24T15:47:45Z")

</div>

Hi!  
We are using Dolibarr for our publishing house and we need to create sale invoices to our wholesaler based on their report.  
The problem is that we must insert in some lines negative quantities for the books which are not sold and are returned to us.  
We have already set up the global options to allow negative lines and totals in the invoice, but the “quantity” field seems locked as it allows only positive numbers.  
Is there a way to solve this?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![RiseValInfotech](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@RiseValInfotech](https://www.dolibarr.org/forum/u/RiseValInfotech)\
**Post date:** [March 25, 2022, 1:07pm UTC](https://www.dolibarr.org/forum/t/allowing-negative-quantities-in-invoice-lines/22072/2 "2022-03-25T13:07:21Z")

</div>

Try creating an extra line field [Complementary attributes (lines)] depicting returns, if that is easier.

thanks  
yesbee

---

<div class="post-metadata">

**Author:** ![Marco82](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/m/bbe5ce/32.png) [@Marco82](https://www.dolibarr.org/forum/u/Marco82)\
**Post date:** [March 28, 2022, 3:23pm UTC](https://www.dolibarr.org/forum/t/allowing-negative-quantities-in-invoice-lines/22072/3 "2022-03-28T15:23:03Z")

</div>

Thank you very much!
