Inventory

Lager och lagerställen

MarknadsplatsVerksamhetVersion 0.1.0manifest

Vad den är till för ​

Describe warehouses and locations, record stock levels and log stock moves. Quantities are entered by people, so it works as a ledger of what was counted and moved rather than an automatic stock engine.

Vad paketet gör och inte gör ​

Warehouses, stock locations, stock levels and stock moves. Quantities are entered and validated by people; they are not updated automatically by moves.

Modeller ​

inventory_warehouse ​

A building or site where stock is kept

Läsgrupp: inventory.user. Skrivgrupp: inventory.manager.

FältTypDataklassPersonuppgiftGruppAgenter serBeskrivning
nametextnonenejinventory.useri klartextWarehouse name
codetextnonenejinventory.useri klartextShort code printed on documents, for example WH1
addresslongtextnonenejinventory.useri klartextPostal address of the site
activeboolnonenejinventory.useri klartextWhether the warehouse is in use

inventory_location ​

A place inside a warehouse where stock can sit

Läsgrupp: inventory.user. Skrivgrupp: inventory.manager.

FältTypDataklassPersonuppgiftGruppAgenter serBeskrivning
nametextnonenejinventory.useri klartextLocation name, for example Shelf A3
warehouse_idref → inventory_warehousenonenejinventory.useri klartextThe warehouse the location belongs to
kindselect (internal, receiving, shipping, transit, scrap)nonenejinventory.useri klartextWhat the location is used for: internal, receiving, shipping, transit, scrap
activeboolnonenejinventory.useri klartextWhether the location is in use

inventory_item ​

The quantity of one product held at one location

Läsgrupp: inventory.user. Skrivgrupp: inventory.manager.

FältTypDataklassPersonuppgiftGruppAgenter serBeskrivning
product_idref → productnonenejinventory.useri klartextThe product held
location_idref → inventory_locationnonenejinventory.useri klartextWhere it is held
quantitynumbernonenejinventory.useri klartextUnits on hand
reorder_levelnumbernonenejinventory.useri klartextQuantity at or below which the product should be replenished
lottextnonenejinventory.useri klartextLot or batch number, if tracked

inventory_move ​

A movement of a product between locations, or into or out of the business

Läsgrupp: inventory.user. Skrivgrupp: inventory.user.

FältTypDataklassPersonuppgiftGruppAgenter serBeskrivning
referencetextnonenejinventory.useri klartextReference of the move, for example a delivery or receipt number
product_idref → productnonenejinventory.useri klartextThe product moved
from_location_idref → inventory_locationnonenejinventory.useri klartextWhere it leaves; empty for a receipt from a supplier
to_location_idref → inventory_locationnonenejinventory.useri klartextWhere it arrives; empty for a delivery to a customer
quantitynumbernonenejinventory.useri klartextUnits moved
scheduled_ondatenonenejinventory.useri klartextDate the move is planned for (YYYY-MM-DD)
stateselect (draft, done, cancelled)nonenejinventory.useri klartextMove status: draft, done, cancelled

Arbetsflöden ​

inventory_move ​

ÅtgärdFlyttarVem får köra denGodkännande
inventory_move.validatestate: draft → doneinventory.userja
inventory_move.cancelstate: draft → cancelledinventory.usernej

Behörighetsgrupper ​

Grupper som den här appen använder:

  • inventory.manager
  • inventory.user

Steg som kräver godkännande ​

Steg som en agent bara kan föreslå:

  • inventory_move.validate

Vad agenter kan och inte kan göra ​

En agent kan läsa, söka, skapa och uppdatera poster i den här appen, och köra de åtgärder som inte kräver godkännande, inom behörighetsgrupperna för sin token.

Den kan bara föreslå de här stegen, och en person måste godkänna dem: inventory_move.validate, inventory_warehouse.delete, inventory_location.delete, inventory_item.delete, inventory_move.delete.

Beroenden ​

  • product

Installera ​

Installera den från appen Customize (Marknadsplats), eller från kommandoraden:

bash
obop modules install-from inventory

Kräver en databas och administratörsbehörighet.

Bygg din egen ​

Modulguiden visar hur appar som den här skrivs