Commit 4cef59fb authored by Jérome Perrin's avatar Jérome Perrin

describe a bit more inventory

parent 15275c7e
......@@ -258,7 +258,9 @@ Many incoming purchase packing lists have increased the stocks and many outgoing
| N1 | R2 | 10 |
| N2 | R1 | 3 |
When counting the quantities of R1 and R2 in nodes N1 and N2, we notice:
When counting the quantities of R1 and R2 in nodes N1 and N2, we notice that the physical stock is different from the sum of movements, probably because some products were lost / stolen or there have been some mistakes.
The physical stock is:
| Node | Resource | Quantity |
| ------------- | -------- | ---------:|
......@@ -266,7 +268,7 @@ When counting the quantities of R1 and R2 in nodes N1 and N2, we notice:
| N1 | R2 | 12 |
| N2 | R1 | 3 |
This is the information that will be entered in an inventory document and this inventory will be "indexed" in the stock table like this:
This is the information that will be entered in an inventory document and this inventory will be "indexed" in the stock table in a way that it adjust the quantities in the stock table to match the physical stock, something like this:
| Node | Resource | Quantity |
| ------------- | -------- | ---------:|
......@@ -285,7 +287,6 @@ Then, when we call `getInventory(node=N1, resource=R1)`, the following lines are
And the value returned by `getInventory` is 4, which matches what has been counted on the floor during inventory procedure.
XXX Check terminology and maybe put below.
# Flow API
linear movements
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment