Skip to main content

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.

CashMan H.A. supports three credit product types stored in the productos table. Products are managed by administrators and referenced when creating credit applications. Each product defines the permitted client types, interest rate range, maximum financing amount, and maximum repayment term. Only products with an estadoproducto value of Activo are available for new credit applications.

Credit Product Overview

ProductClient TypesInterest Rate (monthly)Maximum AmountMaximum Term
Personal Loans (Personales)Asalariado, Independiente, Jubilado3% – 20%10,000(Asalariado/Jubilado)10,000 (Asalariado/Jubilado) · 15,000 (Independiente)120 months (10 years)
Mortgage Loans (Hipotecarios)Asalariado, Independiente1.05% – 12%30,00030,000 – 3,000,000240 months (20 years)
Vehicle Loans (Vehiculos)Asalariado, Independiente10% – 60%100,000(Asalariado)100,000 (Asalariado) · 200,000 (Independiente)90 months
All credit applications are subject to an income study. Gerencia must review first, then Presidencia grants final approval before the client gains full system access and a contract is generated.

Client Types

Every credit application captures the employment category of the applicant. The three recognized types and their eligibility are:
TypeSpanish LabelEligible Products
Salaried employeeAsalariadoPersonal, Mortgage, Vehicle
Self-employed / independent workerIndependientePersonal, Mortgage, Vehicle
RetiredJubiladoPersonal only

Personal Loans (Personales)

Personal loans are the most broadly accessible product, available to all three client types.
  • Monthly interest rate: 3% to 20% on the financed amount
  • Maximum financing:
    • Asalariado and Jubilado: up to $10,000.00 USD
    • Independiente: up to $15,000.00 USD
  • Maximum term: 120 months (10 years)
Personal loan contracts are generated as PDFs by the FPDF library and include the client’s digital signature image from vista/images/fotofirmas/. Personal references (see Personal References) are required as part of the application.

Mortgage Loans (Hipotecarios)

Mortgage loans carry the lowest interest rates and the longest available terms, reflecting their secured nature.
  • Monthly interest rate: 1.05% to 12% on the financed amount
  • Maximum financing: 30,000.00USDminimumupto30,000.00 USD minimum up to **3,000,000.00 USD**
  • Maximum term: 240 months (20 years)
  • Financing cap: Up to 90% of the appraised property value
Property and land details are captured directly within the credit application fields — there is no separate supplementary table for mortgage-specific data (unlike vehicle loans, which have datosvehiculoscreditos).
Because mortgage amounts can reach $3,000,000 and are repaid over up to 20 years with a monthly rate as low as 1.05%, the saldocredito field uses decimal(15,6) precision to avoid rounding drift over hundreds of payment cycles. See Loan Calculations for details on the precision fix.

Vehicle Loans (Vehiculos)

Vehicle loans carry the highest interest rate range and require additional vehicle data to be captured at application time.
  • Monthly interest rate: 10% to 60% on the financed amount
  • Maximum financing:
    • Asalariado: up to $100,000.00 USD
    • Independiente: up to $200,000.00 USD
  • Maximum term: 90 months
  • GPS service fee: A monthly GPS tracking fee is added to each installment for the device installed on the financed vehicle

Vehicle Data Table: datosvehiculoscreditos

Vehicle loan applications store the following supplementary fields in the datosvehiculoscreditos table:
ColumnDescription
numeroplacaLicense plate number
clasevehiculoVehicle class / type
aniofabricacionYear of manufacture
marcavehiculoMake / brand
modelovehiculoModel
numeromotorEngine number
numerochasisovinChassis / VIN number
colorvehiculoVehicle color

productos Table Structure

All three product types are rows in the productos table. Administrators manage product records through the platform (create, modify, view).
ColumnTypeDescription
idproductoINT (PK)Unique product identifier
codigoproductoVARCHARUnique product code
nombreproductoVARCHARDisplay name (e.g., Personales, Hipotecarios, Vehiculos)
descripcionproductoTEXTFull product description
requisitosproductoTEXTRequirements text shown to applicants
estadoproductoENUMLifecycle state: Activo, Inactivo, or Expirado

Product Lifecycle

Activo ──► Inactivo ──► Expirado
  • Activo — available for new credit applications
  • Inactivo — temporarily unavailable; existing credits are unaffected
  • Expirado — permanently retired; cannot be reactivated
Only Activo products appear in the new credit application selector. Changing a product to Inactivo or Expirado while clients have active credits under that product does not affect those existing credit records — it only prevents new applications from referencing the product.

Personal References

All credit applications require personal references stored in the referenciaspersonales table. Each reference captures:
ColumnDescription
nombresreferenciaReference’s first name(s)
apellidosreferenciaReference’s last name(s)
telefonoreferenciaContact phone number
empresareferenciaEmployer or company of reference
cargoreferenciaJob title / position of reference
relacionreferenciaRelationship to the applicant

PDF Contract Generation

Once a credit is approved and activated, FPDF generates a signed contract PDF specific to the product type (personal, mortgage, or vehicle). Contracts are stored in vista/copiacontratosclientes/. The client’s digital signature is embedded from the image file uploaded during registration at vista/images/fotofirmas/. Monetary amounts within the contract text are converted to Spanish words using the luecano/numero-a-letras Composer package (e.g., $5,000.00"Cinco Mil Dólares con 00/100").

Build docs developers (and LLMs) love