Parent Location quantity of flat_child location is incorrect
We noticed a wrong computation of stock when using flat_children storage.
Here's a scenario to reproduce it.
We create a storage location named "Z0" with parent "Storage Zone" and we check the "flat_children" box.
We create another storage location named "Z1" with parent "Z0".
We receive 80 products 'P' into Storage Zone. (supplier shipment)
We move 60 products into location "Z1" (internal shipment)
Now in the "Locations" treeview, if we double-click on Storage Zone to see product quantities, product "P" has 140 (which is incorrect).
Quantity of product "P" in "Z1" = 60 (correct), Quantity of product "P" in "Z0" = 60 (correct).
It seems quantity of a child location into a flat_children location is counted twice during stock computation...
Files
Download | Creator | Timestamp | Type |
---|---|---|---|
bug_qty_location_flat_children.pdf | @maxx | 2018-02-26 09:23:29.101000 UTC | application/pdf |
bug_quantity.diff | @maxx | 2018-02-26 12:36:49.775000 UTC | text/plain |