The Control de Entradas module is the plant’s primary gate for raw-material intake. Operators search an open purchase order from the Profit ERP, confirm the vehicle and product details, and submit an entry record that is simultaneously saved to the local database and pushed to Ceres Romana via a stored procedure. A rolling history panel lets supervisors review all past entries filtered by date range.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JuanDiego3030/Planta_Milenio/llms.txt
Use this file to discover all available pages before exploring further.
Required Permission
Access to this module requires thepermiso_control permission. Users without it are redirected on both GET and POST requests. Users flagged as solo_consulta (read-only) can search orders and browse the history panel but are blocked from submitting new entries.
Searching a Purchase Order
Navigate to/control/ and append the fact_num query parameter with the order number you want to look up. The view queries the ceres_romana.orden_profit table and displays the matching record inline above the registration form.
orden_profit:
| Field | Description |
|---|---|
| Order number | The fact_num identifier |
| Emission date | Date the order was created in Profit |
| Status | Current order status in the ERP |
| Supplier | Vendor associated with the order |
| Product | Product description line |
| Quantity | Total ordered quantity |
| Pending | Remaining quantity not yet received |
Only one order can be searched or registered at a time. The form always operates on the single order number supplied in the
fact_num parameter. To register a different order, issue a new search with a different fact_num.Registering an Entry
Once the order details appear on screen, complete the registration form and submit it. The two fields that must be filled in before the form will accept a submission are:- Vehicle plate (
Vehiculo_Placa) — the plate of the vehicle entering the plant - Product description — selected from the autocomplete dropdown populated by the order’s product lines
What Happens on Submit
Form validation
The server checks that
Vehiculo_Placa and the product description are both present. Missing either field returns a validation error without writing any data.Local Historial record created
A new
Historial row is inserted into the local SQLite database, storing the vehicle plate, order number, product description, and an automatic entry timestamp.Ceres Romana insert
The
Orden_Profit_Transporte_Insert stored procedure is executed on the ceres_romana database, recording the full transport details: product code, company RIF, driver cedula, vehicle plate, trailer plate, and destination name.History Panel
Below the registration form, the page shows a paginated list of allHistorial entries recorded through this module. You can narrow the list to a specific period using the date filter parameters.
URL Reference
Read-Only Mode
Accounts with thesolo_consulta flag can access /control/ and use all GET-based features — searching orders and browsing the history panel with date filters. Any POST submission from a solo_consulta session is rejected. The registration form fields are disabled in the template when this flag is active, making the restriction visible to the operator before they attempt to submit.