WIP: Rework inventory
- 15 Apr, 2025 48 commits
-
-
Titouan Soulard authored
-
Titouan Soulard authoreda8c3e5c3
-
Titouan Soulard authored7beef224
-
Titouan Soulard authored09ba71bb
-
Titouan Soulard authored
Otherwise, cells are never created.
c3d0b9ff -
Titouan Soulard authored
Reintroduces previously removed `alternateReindexObject`
dc43aa61 -
Titouan Soulard authored
This reverts commit 3afadeea. Try to see if it would fix Balance Transaction tests, without breaking Inventories. Not very nice to keep it for only one Portal Type, but we have to keep going.
a24bf68c -
Titouan Soulard authored13c89d90
-
Titouan Soulard authoreda3d0e49a
-
Titouan Soulard authored
Follows up change from `erp5_immobilisation`.
53b27dc8 -
Titouan Soulard authored
Fixes tests, otherwise, when accessing Inventory Line or Cell with immobilisation module, we get: > Error Value: 'RequestContainer' object has no attribute > 'isUsingAmortisationMethod'
fdd60775 -
Titouan Soulard authored
It is now needed to precompute inventories. Workflow has a new transition.
4e0f1a9a -
Titouan Soulard authored
I believe the test was wrong from the beginning? It does not seem to match the comments.
db5297e5 -
Titouan Soulard authored
- Test case where new stock in lesser than old stock - Test recalculation of inventory - Test full inventories - Test `getTotalQuantity` and `getTotalPrice` methods
b9f49910 -
Titouan Soulard authored5d1ab392
-
Titouan Soulard authored95211504
-
Titouan Soulard authored56254f21
-
Titouan Soulard authored417465b7
-
Titouan Soulard authored97bcc429
-
Titouan Soulard authored726c2de2
-
Titouan Soulard authored8376a9a4
-
Titouan Soulard authored422362ff
-
Titouan Soulard authored6c6cc0c3
-
Titouan Soulard authoredcd7fe4e8
-
Titouan Soulard authored786e9b08
-
Titouan Soulard authored8f9e18a3
-
Titouan Soulard authored97cd6d4e
-
Titouan Soulard authored037c08ce
-
Titouan Soulard authoredf9d49d9a
-
Titouan Soulard authorede878851e
-
Titouan Soulard authored9cb3a2cf
-
Titouan Soulard authored7f94becd
-
Titouan Soulard authoredd4b2c395
-
Titouan Soulard authored5c02f3d3
-
Titouan Soulard authorede56726d8
-
Titouan Soulard authored
…and delete unused `z_catalog_stock_list_without_delete_for_inventory_virtual_movement`
36dea865 -
Titouan Soulard authoreddb49c8a4
-
Titouan Soulard authored
Had I not done that before? How did it worked? Weird. Maybe just changed the configuration on the Portal Type ?
f687554e -
Titouan Soulard authored4cdb64d2
-
Titouan Soulard authoredf58a9286
-
Titouan Soulard authored
Inventories now contains Offset Lines and Cells which are the actual inventory movements. Old Lines and Cells are simply a report from which offset is calculated.
53603197 -
Xiaowu Zhang authoredbf86f40e
-
Titouan Soulard authored
Add both components and Portal Types for new Inventory Offset Lines and Cells.
8b9eb069 -
Titouan Soulard authorede7caf801
-
Titouan Soulard authoredff47ea01
-
Titouan Soulard authored307998af
-
Titouan Soulard authored
In order to have Inventory Offset Lines, we want the user to be able to check the generated lines before validating. This commit therefore adds an intermediate state `planned`, which will be used to trigger generation of Simulation Movements and building of the offset lines. Some other small changes have been done to make the actions' names more clear and adhere to ERP5 standards, but all keep backward compatiblity: previous states have been kept, and previously validated inventories are now recorded so that no Simulation Movements will be generated that would impact stock values.
3c0e61f5 -
Titouan Soulard authored4175ba66
-