The Transactions module is the auditing backbone of CashMan H.A. Every financial event — whether a loan installment payment or a savings account deposit, withdrawal, or transfer — generates an immutable transaction record. These records are viewable by all roles, scoped to their permission level, and serve as the basis for printable payment receipts (generated via FPDF). Customer Service staff also have access to personal performance metrics derived from their processed transactions.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/DanielRivera03/SistemaBancario/llms.txt
Use this file to discover all available pages before exploring further.
Transaction Record Types
CashMan H.A. maintains two distinct transaction tables to separate credit activity from savings activity.1. Credit Transactions (transacciones)
Records every installment payment order processed against an active credit. Key fields include:
idtransaccion— unique transaction identifierreferencia— payment order reference numbermonto— amount paidfecha— transaction timestampempleadogestion— the Customer Service employee who processed the paymentocultartransacciones_clientes— administrator flag to hide old entries from client view
2. Savings Account Transactions (transaccionescuentasclientes)
Records every deposit, withdrawal, transfer, or void processed against a savings account. Key fields include:
idtransaccion— unique transaction identifierreferencia— operation reference numbermonto— transaction amountsaldo_nuevo— account balance after this transactiontipo— transaction type (deposit, withdrawal, transfer)estado— transaction state (active or voided)empleadogestion— processing employeefecha— transaction timestamp
Credit Payment Flow (Orden de Pago)
Customer Service staff process loan installment payments through the dedicated payment order interface.Fetch Installment Details
Staff queries the specific installment to be paid using
ConsultarCuotas_OrdenPagoClientes(), which calls SP ConsultaEspecificaCuotasClientes_OrdenPagoSistemaPagos. This returns the installment’s due date, outstanding amount, accrued late fees (morainteres), and current status.Process Payment
The payment is submitted via
PagosCuotasClientes_TransaccionesCreditos(), which calls SP RegistroPagoCuotasCreditosClientes_OrdenPagosCashManHa. The stored procedure records the transaction and updates the credit’s remaining balance (saldo_actual).Transaction Query Access by Role
Each role can query transaction history within their authorised scope.| Role | Access Level | Key Methods |
|---|---|---|
| Administrator (Role 1) | Full transaction list; per-client breakdown | Complete query methods for all transacciones and transaccionescuentasclientes records |
| Presidency (Role 2) | Last 200 transactions system-wide | System-wide summary queries |
| Management (Role 3) | Last 200 transactions system-wide | System-wide summary queries |
| Customer Service (Role 4) | Own processed transactions + performance metrics | ConsultarListadoUltimasTrasacciones_PortalAtencionClientes() and metric methods below |
| Client (Role 5) | Their own transactions only | Filtered queries by idusuarios |
Customer Service Performance Metrics
The platform tracks three key performance indicators per Customer Service employee, accessible from their dashboard.| Method | Stored Procedure | Metric |
|---|---|---|
Consulta_ContadorTransaccionesProcesadas_AtencionClientes() | ContadorTransaccionesProcesadas_EmpleadosAtencionClientes | Total number of transactions processed by the employee |
Consulta_ContadorSolicitudesCreditosProcesadas_AtencionClientes() | ConsultaSolicitudesCreditosProcesadas_EmpleadosAtencionClientes | Total credit requests handled by the employee |
Consulta_TotalIngresosTransaccionesCreditosProcesadas_AtencionClientes() | ConsultaTotalIngresosTransaccionesCreditos_EmpleadosAtencion | Total monetary value of all credit payments processed by the employee |
Historic Archiving
When a credit is completed or cancelled, all associated payment records are archived:- The credit itself moves to the
historicocreditostable viaEnvioSolicitudesCreditosAlHistoricoCreditos()— SPEnvioHistoricoSolicitudesCreditos - Installment records move to
historicocuotascreditosviaRegistroAsignacionCuotasMensualesClientesHistorico()
The
ocultartransacciones_clientes flag on the transacciones table allows administrators to hide specific credit transaction entries from the client-facing view. This is useful for suppressing legacy or corrected records without deleting audit data. The transaction remains fully visible to administrative and management roles.