@@ -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.