Vincent Pelletier
Some random notes about ERP5 hacking.
Inventory accounting when involving transitions
Node |
Source |
Destination |
||||
State\getxxxInventory() |
Current |
Available |
Future |
Current |
Available |
Future |
draft |
S |
S |
S |
D |
D |
D |
confirmed |
S |
S-N |
S-N |
D |
D |
D+N |
started |
S-N |
S-N |
S-N |
D |
D |
D+N |
resource is traveling between source and destination |
||||||
stopped |
S-N |
S-N |
S-N |
D |
D |
D+N |
delivered |
S-N |
S-N |
S-N |
D+N |
D+N |
D+N |
S = Source node stock before the document gets accounted.
D = Destination node stock beore the document gets accounted.
N = Quantity being moved from Source to Destination.