Most Powerful Open Source ERP

Technical Note on Working with Inventory in ERP5

Info on working with inventory in ERP5 (from erp5.org Vincent profile notes)
  • Last Update:2016-06-28
  • Version:001
  • Language:en

Tips when working with inventory in ERP5.

Table of Contents

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.

Related Articles