Review Queue Overview
The review section displays all cashouts withstatus: pending in real-time.
Accessing the Queue
Click the “Review a Cashout” button in the sidebar to enter review mode:Queue Features
Cashout Card Display
Each pending cashout shows:- Operation Code: Bold identifier
- Company: Selected company name
- Operator Name: Who submitted it
- Start Time:
cashoutCheckingtimestamp - Live Timer: ⏱️ Shows elapsed time (updates with each refresh)
- Observation Badge: 📝 Yellow badge if operator added observations
- Action Buttons: Approve (✓) and Reject (✗)
Approval/Rejection Workflow
Supervisor Observation Modal
The modal shows the operator’s original observation and asks if you want to add more:
- Original observation displayed in yellow box
- Click SÍ to add additional comments
- Click NO to proceed without adding comments
Execute Review
The system combines observations and sends the update:API Endpoint:
PATCH /api/cashouts/{id}Observation Combining Logic
When a supervisor adds observations, they are appended with a role prefix:- Original:
"Cliente pidió efectivo" - Additional:
"Verificado con contabilidad" - Final:
"Cliente pidió efectivo | Supervisor: Verificado con contabilidad"
Live Timer Calculation
The elapsed time is calculated from thecashoutChecking timestamp:
Role-Based Access
Both supervisors and analysts can review cashouts. The system automatically uses the logged-in user’s:currentUser.fullNamefor thesupervisorNamefieldcurrentUser.rolefor the observation prefix
Error Handling
Network Errors
Network Errors
If the API call fails:The queue is reloaded to ensure UI consistency.
Concurrent Review Prevention
Concurrent Review Prevention
The
procesandoRevision flag prevents multiple simultaneous reviews:API Reference
GET /api/cashouts
Query Parameters:status: Filter by status (e.g.,pending)limit: Maximum number of results (default: 300)