We noticed something strange in the view Stock Moves By Warehouse: the cumulative quantity start is not decremented correctly. I tried to reproduce on the demo but it’s working.
The cumulative quantity start on the fourth line is the same as the first line (instead of 70.898.789, it should be 52.898.789). The same problem happens on the 10th line. First moves are draft outgoing moves (customer shipment).
Indeed, it’s a problem we had last week. (so draft moves were not in the past).
We made a dump of the database and to reproduce the problem, i’ve set today date (for this view) in the past.
I noticed start_date and end_date are the same. Could be the problem ?
As I could see in my example, in the list of the stock moves, the fourth line (PACK-002076) is an assigned move.
But, to calculate Cumulative Quantity Start with Product_by_location, quantity of assigned move is not counted. So in my example, the delta between the dates ‘18/07/2024’ and ‘25/09/2024’ is -30.000.000 and should be -36.000.000 if all moves were concerned.
So assigned moves with a planned date < today are displayed but are not counted in the stock quantities to calculate the cumulative quantity start.