A Control Perceptivo is the formal warehouse receipt document that records the physical reception of materials from a supplier. When materials arrive at the warehouse, a Control Perceptivo is created atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/EricMartinez758/corpointa-frontend/llms.txt
Use this file to discover all available pages before exploring further.
/entradas to establish a verifiable record of what was received, from whom, and in what quantities. Each receipt ties together administrative references such as purchase orders and delivery notes with actual line-item material quantities, providing a complete inbound traceability chain.
Data Model
ControlPerceptivo
Represents the receipt header — one document per supplier delivery.
Auto-generated primary key for the receipt.
Human-readable control number entered by the user at creation (e.g.
ACTA 001-2025). Must be unique across all receipts.The supplier’s delivery note number. Optional; stored as
null when not provided.ISO-8601 date string representing when the receipt was registered (e.g.
2025-01-15).Foreign key referencing the supplier (
proveedores) who delivered the materials.Supplier name resolved via JOIN. Read-only; populated by the API on retrieval.
Free-text notes about the delivery (e.g.
"Entrega parcial"). Optional.Base64-encoded image attached to the receipt header. Optional.
Internal requisition number that originated the purchase. Optional.
Purchase order number issued to the supplier. Optional.
Array of line items describing the materials and quantities received. Populated on detail retrieval.
ControlPerceptivoDetalle
Represents a single material line within a receipt. A receipt must contain at least one detail line.
Auto-generated primary key for the detail line.
Foreign key back to the parent
ControlPerceptivo.Foreign key referencing the material (
materiales) being received.Material description resolved via JOIN. Read-only; populated by the API on retrieval.
Quantity of the material received. Must be greater than
0. Accepts decimal values. The API accepts both number and numeric string (automatically coerced to number).Creating a Receipt
New receipts are created at the dedicated form route/entradas/crear. The form is split into a header section (receipt metadata) and a materials detail section (line items). At least one material line must be added before submitting.
Select a Supplier
Choose the delivering supplier from the Proveedor dropdown. The list is populated from all active suppliers in the system. This field is required.
Set the Control Number and Date
Enter a unique Número de Control (e.g.
ACTA 001-2025) and select the Fecha for when the receipt is being registered. Both fields are required and the control number is user-provided — it is not auto-generated.Fill in Order References (Optional)
Optionally provide the Número Nota Entrega (supplier delivery note), Número Requerimiento (internal requisition), and Número Orden Compra (purchase order). These fields link the receipt to procurement documents for traceability.
Add Material Lines
In the Detalles de Materiales panel, select a material from the Material dropdown and enter the Cantidad received. Optionally attach a photo of the goods for the detail line. Click Agregar to append the line to the receipt table. Repeat for each material in the delivery. Each material can only appear once per receipt.
Submitting a Control Perceptivo automatically increases the warehouse stock (
existencias) for each material in the detalles array. No separate stock adjustment is required.Viewing Receipts
The list view at/entradas displays all registered receipts in a sortable data table. Each row exposes the following columns:
| Column | Description |
|---|---|
| Nº Control | The receipt control number (numero_control). Sortable. |
| Fecha | The registration date (fecha_control), formatted as a locale date string. Sortable. |
| Nota Entrega | The supplier delivery note number (numero_nota_entrega), or N/A when absent. |
| Actions | Row-level actions for viewing receipt details. |
proveedor_nombre and all detalles lines.
API Operations
List All Receipts
—
No query parameters. Returns all Control Perceptivo records without
detalles.Get a Single Receipt
Returns the full receipt including itsdetalles array with resolved material_descripcion for each line.
The
id_control of the receipt to retrieve.Create a Receipt
Creates a new Control Perceptivo and its detail lines in a single request. The backend increments warehouse stock for all materials indetalles.
Unique, user-provided control number (e.g.
ACTA 001-2025). Not auto-generated; must be unique across all receipts.Supplier delivery note number. Optional.
Receipt date in
YYYY-MM-DD format.ID of the supplying vendor.
Internal requisition number. Optional.
Purchase order number. Optional.
Free-text delivery notes. Optional.
Array of material lines. Each element requires
fk_id_material (number) and cantidad (number > 0). Minimum one item required.