The Auditoría module gives supervisors a read-write view of transport records stored in Ceres Romana. It fetches the most recent 100 entries from theDocumentation 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.
orden_profit_transporte table, presents them in a searchable, paginated table, and allows authorised users to correct transport details via inline editing. All edits are applied directly to Ceres Romana through a stored procedure — no local copy of these records is maintained.
Required Permission
Access requires thepermiso_auditoria permission. Users flagged as solo_consulta can browse and search records but cannot submit edits.
Reading Transport Records
On load, the module retrieves the top 100 records fromorden_profit_transporte ordered by most recent first. Each row in the table shows:
| Column | Description |
|---|---|
| Order number | The Numero_Orden linking back to orden_profit |
| Product | Product code and enriched product name resolved from orden_profit |
| Company | Empresa_Rif of the transporting company |
| Vehicle plate | Vehiculo_Placa |
| Trailer plate | Vehiculo_Remolque_Placa |
| Driver | Conductor name and cedula |
| Destination | Destino_Nombre |
| Pesada status | Pesada_Id — indicates whether the transport has been weighed |
Product Enrichment
For each transport record, the module cross-referencesNumero_Orden against orden_profit to retrieve the associated product lines. This means the product column reflects the ERP product data rather than a raw code, giving auditors human-readable context without needing to leave the module.
All edits made through this module are applied directly to Ceres Romana via the
Orden_Profit_Transporte_Update stored procedure. There is no local shadow copy of transport records — what you see is the live data in the ERP database, and what you save goes straight back to it.Searching Records
Use thebuscar query parameter to filter the displayed records. The search matches against:
- Order number (
Numero_Orden) - Vehicle plate (
Vehiculo_Placa) - Conductor first name (
Conductor_Nombre) - Conductor surname (
Conductor_Apellido) - Conductor cedula (
Conductor_Cedula)
Pagination
Records are displayed 10 per page. Use thepage parameter to navigate:
Editing a Record
Authorised users can edit any transport record that has not yet been weighed. Click the edit button on a row to open the inline edit form, modify the relevant fields, and submit. The POST request must includeeditar_registro alongside the record identifier and the updated field values. The server then calls the Orden_Profit_Transporte_Update stored procedure on Ceres Romana with the new values.
Editable Fields
| Field | Description |
|---|---|
Producto_Codigo | Product code — the system automatically resolves the corresponding Producto_Id and Producto_Nombre |
Empresa_Rif | RIF (tax ID) of the transport company |
Conductor_Cedula | Driver’s national ID number |
Vehiculo_Placa | Primary vehicle plate |
Vehiculo_Remolque_Placa | Trailer plate (leave blank if no trailer) |
Destino_Nombre | Destination name |
Producto_Codigo is updated, the stored procedure call includes the resolved Producto_Id and Producto_Nombre automatically — you only need to supply the code.
Edit Restrictions
solo_consulta users also cannot edit records regardless of Pesada_Id status. The edit controls are not rendered for read-only sessions.