---
title: "Manufacturing"
description: "Tuoterakenteet. Jokainen sovellus on moduuli samalla tietomallilla."
canonical: "https://obop.dev/fi/apps/manufacturing/"
lang: "fi"
---

# Manufacturing

## Mihin se on tarkoitettu

Define what a product is made of and plan manufacturing orders through draft, confirmed, in progress and done. Component stock is not consumed automatically.

## Mitä paketti tekee ja mitä ei

Bills of materials and manufacturing orders with a draft, confirmed, in progress and done flow. Component stock is not consumed automatically.

## Mallit

### `manufacturing_bom`

A recipe: the components needed to make a product

Lukuryhmä: `manufacturing.user`. Kirjoitusryhmä: `manufacturing.manager`.

| Kenttä | Tyyppi | Tietoluokka | Henkilötieto | Ryhmä | Agentit näkevät | Kuvaus |
|---|---|---|---|---|---|---|
| `product_id` | ref → product | `none` | ei | `manufacturing.user` | selkoisena | The finished product the recipe makes |
| `name` | text | `none` | ei | `manufacturing.user` | selkoisena | Name of the recipe, for example Standard assembly |
| `quantity` | number | `none` | ei | `manufacturing.user` | selkoisena | Units of the finished product one run produces |
| `instructions` | longtext | `none` | ei | `manufacturing.user` | selkoisena | Assembly notes for the shop floor |
| `active` | bool | `none` | ei | `manufacturing.user` | selkoisena | Whether the recipe can be used for new orders |

### `manufacturing_bom_line`

One component of a bill of materials

Lukuryhmä: `manufacturing.user`. Kirjoitusryhmä: `manufacturing.manager`.

| Kenttä | Tyyppi | Tietoluokka | Henkilötieto | Ryhmä | Agentit näkevät | Kuvaus |
|---|---|---|---|---|---|---|
| `bom_id` | ref → manufacturing_bom | `none` | ei | `manufacturing.user` | selkoisena | The recipe the component belongs to |
| `component_id` | ref → product | `none` | ei | `manufacturing.user` | selkoisena | The product consumed |
| `quantity` | number | `none` | ei | `manufacturing.user` | selkoisena | Units of the component used per run |

### `manufacturing_order`

An instruction to produce a quantity of a product

Lukuryhmä: `manufacturing.user`. Kirjoitusryhmä: `manufacturing.user`.

| Kenttä | Tyyppi | Tietoluokka | Henkilötieto | Ryhmä | Agentit näkevät | Kuvaus |
|---|---|---|---|---|---|---|
| `reference` | text | `none` | ei | `manufacturing.user` | selkoisena | Order number, for example MO-0042 |
| `bom_id` | ref → manufacturing_bom | `none` | ei | `manufacturing.user` | selkoisena | The recipe to follow |
| `quantity` | number | `none` | ei | `manufacturing.user` | selkoisena | Units of the finished product to make |
| `planned_on` | date | `none` | ei | `manufacturing.user` | selkoisena | Date production should start (YYYY-MM-DD) |
| `deadline` | date | `none` | ei | `manufacturing.user` | selkoisena | Date the goods are needed (YYYY-MM-DD) |
| `responsible` | text | `internal` | kyllä | `manufacturing.user` | maskattu | Name of the person in charge of the run |
| `state` | select (draft, confirmed, in_progress, done, cancelled) | `none` | ei | `manufacturing.user` | selkoisena | Order status: draft, confirmed, in_progress, done, cancelled |

## Työnkulut

### `manufacturing_order`

| Toiminto | Siirtää | Kuka voi suorittaa | Hyväksyntä |
|---|---|---|---|
| `manufacturing_order.confirm` | state: draft → confirmed | `manufacturing.manager` | ei |
| `manufacturing_order.start` | state: confirmed → in_progress | `manufacturing.user` | ei |
| `manufacturing_order.finish` | state: in_progress → done | `manufacturing.user` | ei |
| `manufacturing_order.cancel` | state: draft → cancelled | `manufacturing.user` | ei |

## Käyttöoikeusryhmät

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

- `manufacturing.manager`
- `manufacturing.user`

## Hyväksyntävaiheet

Mikään tämän sovelluksen vaihe ei vaadi hyväksyntää tietueiden poistamista lukuun ottamatta.

## 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: `manufacturing_bom.delete`, `manufacturing_bom_line.delete`, `manufacturing_order.delete`.

Henkilötiedot maskataan paikkamerkeiksi: `manufacturing_order.responsible`.

## Riippuvuudet

- `product`

## Asennus

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

```bash
obop modules install-from manufacturing
```

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

## Tee oma

[Moduulioppaassa näytetään, miten tällaiset sovellukset kirjoitetaan](/fi/docs/reference/module-manifest/)
