Before any material can flow through the system you need at least one principal warehouse (the central stock location) and one or more obra warehouses (work sites that receive materials). You also need a material catalogue — each entry carries a unique code, a unit of measure, and unit prices used for budget cost calculations.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ElthonJohan/Sistema-MRP/llms.txt
Use this file to discover all available pages before exploring further.
Warehouses
TheWarehouse model has two types controlled by the type column (see Data Models):
| Type | Role |
|---|---|
principal | The client’s main stock store. One per client. The dispatch and requirement services locate it via Warehouse.owner_id == obra.owner_id and Warehouse.type == "principal". |
obra | A work-site warehouse. A client can have many. Receives material via receipts. |
Create a warehouse
Fill in the required fields
Enter Nombre (name), select Tipo (
principal or obra), and provide Ciudad/Distrito and Dirección.Edit or delete a warehouse
Expand the Editar almacén existente section, select the warehouse from the dropdown, update any field, and click Actualizar. To delete, click the ✕ button next to the warehouse card and confirm the prompt.Materials
TheMaterial model stores the full catalogue shared across all clients (see Data Models):
| Field | Type | Notes |
|---|---|---|
code | String (unique) | Human-readable identifier, e.g. MAT-001 |
name | String (unique) | Display name |
unit | String | Unit of measure: kg, m, unidad, litro, etc. |
description | String | Optional free-text description |
unit_price | Float | Unit price in Peruvian soles (S/.) |
unit_price_dolares | Float | Unit price in US dollars ($) |
Create a material
Enter the material details
Fill in Código (must be unique), Nombre (must be unique), Unidad, and optionally Descripción. Enter at least one of Costo S/. or Costo $ with a value greater than zero.