Overview
Payment management in SMAF is handled by two complementary BRL classes:- MngNegocioPago: Commission payment queries and disbursement tracking
- MngNegocioMinistracion: Budget allocation management and fund release processing
MngNegocioPago - Commission Payments
Source File:InapescaWeb.BRL/MngNegocioPago.csAuthor: Juan Antonio López López (CRIP Salina Cruz)
Created: November 2015
Core Payment Queries
List Commissions Pending Payment
Retrieve all verified commissions ready for disbursement:Department location code (e.g.,
CRIP-SC, OF-CENTRALES)Filter by project location if specified
Fiscal period (format:
YYYY) - defaults to current yearIf
true, returns only commissions assigned to the current financial officerEntidad objects with:
Clave: Commission archive IDDescripcion: Employee name and commission detailsValor: Total amount to disburseFecha: Verification approval date
Retrieve Payment Details
Get full commission payment information:Pagos entity with:
- Employee bank account details (CLABE, bank name)
- Verified expense breakdown
- Payment status and method
- Reference numbers
The
Pagos entity includes encrypted bank account information that is decrypted only during payment file generation.Payment Workflow Integration
Typical payment processing sequence:MngNegocioMinistracion - Budget Allocations
Source File:InapescaWeb.BRL/MngNegocioMinistracion.csAuthor: Juan Antonio López López (CRIP Salina Cruz)
Created: February 2016 Ministraciones are budget fund releases to vendors or service providers for operational expenses (not travel commissions).
Create Budget Allocation
Insert a new ministracion record:Allocation type:
SERVICIOS: Professional servicesSUMINISTROS: Supplies and materialsARRENDAMIENTO: Lease paymentsMANTENIMIENTO: Maintenance and repairs
Vendor legal name (razón social)
Vendor tax ID (Registro Federal de Contribuyentes)
Gross invoice amount before withholdings
Net amount to disburse after withholdings
Retrieve Ministracion Details
Archive identifier (unique instance ID)
Ministracion folio number
Expense concept code
If
true, includes tax calculation detailsUpdate Payment Status
Update ministracion after payment execution:Payment status:
SOLICITADA: Submitted, pending approvalAUTORIZADA: Approved for paymentPAGADA: Payment executedRECHAZADA: RejectedCANCELADA: Cancelled
Bank reference number generated for tracking
List Ministraciones
Query ministracion records:Solicited Items Detail
Bank Reference Generation
Source File:InapescaWeb.BRL/MngNegocioGenerarRef.cs
The reference generation system creates unique payment tracking identifiers.
Generate New Reference Number
YYYYMMDD-####
Example: 20240315-0042
Insert Reference Record
Create payment reference record:Reference entity with:
Referencia: Generated reference numberArchivo: Commission archive IDFolio: Commission folioTotalPagar: Amount to disburseFechaGeneracion: Reference creation dateEstatus:GENERADA,PAGADA,CANCELADA
Insert Reference Details
For itemized payment references:Retrieve Reference Information
Query existing references:Retrieve Reference Details
If
true, query by internal ID; if false, query by reference numberUpdate Reference Status
Update reference after payment confirmation:Update with Payment Confirmation
Payment Type Catalog
| Code | Description | Processing Time |
|---|---|---|
| DEPOSITO | Direct bank deposit | 24-48 hours |
| TRANSFERENCIA | Electronic transfer | Same day |
| CHEQUE | Physical check | 3-5 days |
| SPEI | SPEI interbank transfer | Immediate |
Payment Comparison and Validation
Paid vs. To Pay
TotalSolicitado: Requested amountTotalPagado: Disbursed amountPendiente: Remaining balance
This method is critical for partial payment tracking when ministraciones are paid in installments.
Update Status by Concept
Fiscal Period Management
Obtain Period Code
| Date Range | Period Code |
|---|---|
| Jan 1 - Mar 31 | Q1 |
| Apr 1 - Jun 30 | Q2 |
| Jul 1 - Sep 30 | Q3 |
| Oct 1 - Dec 31 | Q4 |
Check Archive in Ministracion
"1" if archive has associated ministraciones, "0" otherwise.
Ministracion Types Catalog
Filter option:
TODOS: All ministracion typesFACTURABLE: Only types requiring CFDI invoiceNO_FACTURABLE: Types allowing simplified receipts
Tax Withholding Calculations
Ministraciones automatically calculate tax withholdings:Common Withholding Rates
- IVA (VAT): 16% (2/3 withheld = 10.67%)
- ISR (Income Tax): Varies by service type (1%-10%)
- IVA Retenido: 16% on professional services
- ISR Retenido: 10% on professional services
Calculation Example
Payment File Generation
While file generation is handled by the presentation layer, the BRL provides data:Payment Reconciliation
After bank confirms payment:Audit Trail Integration
All payment operations create audit records:- Reference generation: Tracks who created payment requests
- Status updates: Records approval chain
- Payment confirmation: Captures payment officer and timestamp
- Bank reconciliation: Links reference to bank transaction ID
Security Considerations
Bank Account Encryption
Bank Account Encryption
CLABE (bank account) numbers are encrypted in the database and only decrypted during payment file generation by authorized financial officers.
Payment Authorization
Payment Authorization
Reference Number Uniqueness
Reference Number Uniqueness
Reference numbers include date and sequence to prevent collisions. The system validates uniqueness before insertion.
Tax Withholding Compliance
Tax Withholding Compliance
Withholding calculations are auditable and include SAT regime codes for vendor tax compliance.
Common Payment Scenarios
Scenario 1: Standard Commission Reimbursement
Scenario 2: Refund Processing
Scenario 3: Vendor Payment with Withholdings
Related Documentation
Commission Management
Commission creation and authorization
Verification Management
Expense verification before payment
Bank Integration
Payment file formats and bank APIs
Financial Reports
Payment tracking and reconciliation reports