# Main warehouse stock does not update

**URL:** <https://www.dolibarr.org/forum/t/main-warehouse-stock-does-not-update/29953>\
**Category:** PM modules\
**Tags:** Help\
**Created:** [February 10, 2025, 1:41pm UTC](https://www.dolibarr.org/forum/t/main-warehouse-stock-does-not-update/29953 "2025-02-10T13:41:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdunys](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/8c91f0/32.png) [@jdunys](https://www.dolibarr.org/forum/u/jdunys)\
**Post date:** [February 10, 2025, 1:41pm UTC](https://www.dolibarr.org/forum/t/main-warehouse-stock-does-not-update/29953/1 "2025-02-10T13:41:12Z")

</div>

Good morning,

Starting from scratch, I have imported a lot of data into the product modules, using both the Dolibarr import facilities, and directly importing into the tables (using HeidiSQL) when there did not seem to be import facility for certain tables (it is possible I am just not able to see these import scripts).

- Entrepot
- Product (of course)
- Stock Warehouse → I used this to import the baseline products from where they would be dispatched to other warehouses
- product\_lot
- product\_batch
- stock\_movement

Although I can see the stock movements OK, The stock at the main warehouse does not go down, even though the products have ‘gone’ to the other warehouses (I entered 2 records for each movement. E.g.:

rowid;tms;datem;fk\_product;batch;eatby;sellby;fk\_entrepot;value;price;type\_mouvement;fk\_user\_author;label;inventorycode;fk\_project;fk\_origin;origintype;model\_pdf;fk\_projet  
1;2025-02-10 09:58:27;2024-02-06 00:00:00;863;E232D302;\N;2026-05-31;110;-300;2.50000000;0;3;Sale Ref: 010056709-DM010028453;T10020612;0;0;\N;\N;0  
2;2025-02-10 10:07:23;2024-02-06 00:00:00;863;E232D302;\N;2026-05-31;324;300;2.50000000;1;3;Sale Ref: 010056709-DM010028453;T10020612;0;0;\N;\N;0  
)

What am I missing? Where am I going wrong?

Thank you in advance

---

<div class="post-metadata">

**Author:** ![Onepoundfish.uk](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/o/db5fbb/32.png) [@Onepoundfish.uk](https://www.dolibarr.org/forum/u/Onepoundfish.uk)\
**Post date:** [February 12, 2025, 9:53am UTC](https://www.dolibarr.org/forum/t/main-warehouse-stock-does-not-update/29953/2 "2025-02-12T09:53:40Z")

</div>

What are your stock decrease settings?  
Decrease stock on validation of invoice or delivery.

---

<div class="post-metadata">

**Author:** ![jdunys](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/8c91f0/32.png) [@jdunys](https://www.dolibarr.org/forum/u/jdunys)\
**Post date:** [February 12, 2025, 12:16pm UTC](https://www.dolibarr.org/forum/t/main-warehouse-stock-does-not-update/29953/3 "2025-02-12T12:16:52Z")

</div>

Good morning,

Thank you for the reply.

I did not set any stock decrease value. As I was importing in ‘bulk’, I did not use the invoice or delivery screens. May be this is why?

For the time being, I deleted table rows to get the correct value.
