Vincent Pelletier

Some random notes about ERP5 hacking.


Inventory accounting

Negative amount (debit)

Positive amount (credit)

State\getxxxInventory()

Current

Available

Future

Current

Available

Future

(1)

O

O

O

O

O

O

(2)

O

O

O+M

O

O

O+M

(3)

O

O+M

O+M

O

O

O+M

(4)

O+M

O+M

O+M

O+M

O+M

O+M

O = Original amount

M = Movement amount

(1): Not in a state known to simulation tool

(2): getPortalFutureInventoryStateList + getPortalTransitInventoryStateList + getPortalReservedInventoryStateList + getPortalCurrentInventoryStateList

(3): getPortalCurrentInventoryStateList + getPortalTransitInventoryStateList + getPortalReservedInventoryStateList (only if negative)

(4): getPortalCurrentInventoryStateList + getPortalTransitInventoryStateList

Examples:

getPortalCurrentInventoryStateLis: ('delivered', 'deposited', 'stopped', 'received')

getPortalReservedInventoryStateList: ('ready', 'confirmed')

getPortalFutureInventoryStateList: ('ordered', 'planned')

getPortalTransitInventoryStateList: ('started',)

Inventory accounting when involving transit

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 before the document gets accounted.

N = Quantity being moved from Source to Destination.


CategoryHomepage

VincentPelletier (last edited 2009-12-15 16:52:28 by VincentPelletier)