Inventory

Varasto ja varastot

MarkkinapaikkaToimintaVersio 0.3.0AGPL-3.0-or-latermanifest

Mihin se on tarkoitettu ​

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.

Mitä paketti tekee ja mitä ei ​

Warehouses, stock locations, stock levels and stock moves. Validating a move takes the quantity out of the stock item at the source location and adds it to the item at the destination, in one step; an item that does not exist yet is created. There is one item per product, location and lot. Negative quantities are allowed, as for virtual locations such as suppliers.

Moduulin tiedot ​

  • Versio: 0.3.0
  • Tekijä: SpaceCorps
  • Lisenssi: AGPL-3.0-or-later
  • Vaatii ytimen: ^0.2 (nykyinen ydin on 0.2.0)
  • Kypsyys: Beta
  • Luokat: Toimitusketju

Mallit ​

inventory_warehouse ​

A building or site where stock is kept

Lukuryhmä: inventory.user. Kirjoitusryhmä: inventory.manager.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
nametextnoneeiinventory.userselkoisenaWarehouse name
codetextnoneeiinventory.userselkoisenaShort code printed on documents, for example WH1
addresslongtextnoneeiinventory.userselkoisenaPostal address of the site
activeboolnoneeiinventory.userselkoisenaWhether the warehouse is in use

inventory_location ​

A place inside a warehouse where stock can sit

Lukuryhmä: inventory.user. Kirjoitusryhmä: inventory.manager.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
nametextnoneeiinventory.userselkoisenaLocation name, for example Shelf A3
warehouse_idref → inventory_warehousenoneeiinventory.userselkoisenaThe warehouse the location belongs to
kindselect (internal, receiving, shipping, transit, scrap)noneeiinventory.userselkoisenaWhat the location is used for: internal, receiving, shipping, transit, scrap
activeboolnoneeiinventory.userselkoisenaWhether the location is in use

inventory_item ​

The quantity of one product held at one location

Lukuryhmä: inventory.user. Kirjoitusryhmä: inventory.manager.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
product_idref → productnoneeiinventory.userselkoisenaThe product held; there is one item per product, location and lot
location_idref → inventory_locationnoneeiinventory.userselkoisenaWhere it is held
quantitynumbernoneeiinventory.userselkoisenaUnits on hand
reorder_levelnumbernoneeiinventory.userselkoisenaQuantity at or below which the product should be replenished
lottextnoneeiinventory.userselkoisenaLot or batch number, if tracked

inventory_move ​

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

Lukuryhmä: inventory.user. Kirjoitusryhmä: inventory.user.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
referencesequencenoneeiinventory.userselkoisenaNumber of the move such as MV-00042, assigned when the move is created
product_idref → productnoneeiinventory.userselkoisenaThe product moved
from_location_idref → inventory_locationnoneeiinventory.userselkoisenaWhere it leaves; empty for a receipt from a supplier
to_location_idref → inventory_locationnoneeiinventory.userselkoisenaWhere it arrives; empty for a delivery to a customer
quantitynumbernoneeiinventory.userselkoisenaUnits moved
scheduled_ondatenoneeiinventory.userselkoisenaDate the move is planned for (YYYY-MM-DD)
stateselect (draft, done, cancelled)noneeiinventory.userselkoisenaMove status: draft, done, cancelled

Työnkulut ​

inventory_move ​

ToimintoSiirtääKuka voi suorittaaHyväksyntä
inventory_move.validatestate: draft → doneinventory.managerkyllä
inventory_move.cancelstate: draft → cancelledinventory.userei

Käyttöoikeusryhmät ​

Tämän sovelluksen käyttämät ryhmät:

  • inventory.manager
  • inventory.user

Hyväksyntävaiheet ​

Vaiheet, joita agentti voi vain ehdottaa:

  • inventory_move.validate

Mitä agentit voivat ja eivät voi tehdä ​

Agentti voi lukea, hakea, luoda ja päivittää tämän sovelluksen tietueita sekä suorittaa toiminnot, jotka eivät vaadi hyväksyntää, tunnisteensa käyttöoikeusryhmien rajoissa.

Se voi vain ehdottaa näitä vaiheita, ja ihmisen on hyväksyttävä ne: inventory_move.validate, inventory_warehouse.delete, inventory_location.delete, inventory_item.delete, inventory_move.delete.

Riippuvuudet ​

Jokainen riippuvuus kertoo hyväksymänsä versiot. Sisäänrakennetut sovellukset versioituvat ytimen mukana, joten niitä koskeva vaatimus tarkistetaan ytimen versiota vasten.

Kun tämä sovellus asennetaan moduulikaupasta, myös puuttuvat riippuvuudet asennetaan yhdessä suunnitelmassa, jonka vahvistat kerran.

Asennus ​

Asenna se Customize-sovelluksesta (Marketplace) tai komentoriviltä:

bash
obop modules install-from inventory

Vaatii tietokannan ja ylläpitäjän oikeudet.

Tee oma ​

Moduulioppaassa näytetään, miten tällaiset sovellukset kirjoitetaan