const {
    style
} = require('./style')
const {
    HEADER
} = require('../global/header')


const validaciones = [

];

const pages_border = {
    border_left: 8,
    border_top: 0,
    border_right: 10,
    border_bottom: 0,
    header_height: 40,
    footer_height: 15,
    orientacion: 'landscape'
};

const estado_cuenta = async(parametros, imagen, fuente) => {
    const acreditado = parametros['acreditado'];
    const empresa = parametros['empresa'];
    const prestamo = parametros['prestamo'];
    const movimiento = parametros['movimiento'];
    const pago = parametros['pago'];
    return `
      <!doctype html>
      <html>
      <head>
          <meta charset="utf-8">
          <title>ESTADO DE CUENTA</title>
          <style>
          ` + await style(fuente) + ` 
          </style>
      </head>
      
      <body class="break-word">

        <div id="pageHeader"  >  
            <div align='center' style='height: 100%; padding-bottom:1.6mm;'>
              ` + HEADER("" + empresa.nombre, '' + empresa.sucursal.nombre, '' + parametros['documento_titulo'], '' + imagen) + `
            </div>
        </div>

        <div id="pageFooter">
          <div class='page_number'>
                {{page}}/{{pages}}
          </div>
          <div class="row1">
            <b><span>${empresa.nombre_largo}.: ${empresa.domicilio.domicilio_completo}.</span></b>
        </div>
        </div>

        <table class="">
            <tr class="px-none">
                <td class="row2 noborder py-none px-none" style="padding-right: 1%;">
                    <table class="noborder">
                        <tr class="noborder">
                            <td class="bg-dark text-center text-white noborder py-none px-none">
                                <b>NÚMERO DE CLIENTE</b>
                            </td>
                            <td class="bg-dark text-center text-white noborder py-none px-none">
                                <b>NÚMERO DE CONTROL</b>
                            </td>
                        </tr>
                        <tr class="noborder"> 
                            <td class="bg-dark text-center text-white py-none px-none noborder">
                                ${acreditado.pk_cat_socio}
                            </td>
                            <td class="bg-dark text-center text-white py-none px-none noborder">
                                ${prestamo.referencia}
                            </td>
                        </tr>
                    </table>
                    ${informacion_cliente(acreditado)}
                </td>
                <td class="row2 noborder py-none px-none" style="padding-left: 1%;"  VALIGN="bottom">
                     <!--${informacion_interes(prestamo.intereses)}-->
                    ${informacion_interes(prestamo.intereses)}
                </td>
            </tr>
        </table>
        <div class="col-max my"> 
        </div>
        ${informacion_prestamo(prestamo, pago)}
        <div class="col-max my">
        </div>
        ${totales(prestamo, pago)}
        <div class="col-max my">
        </div>
        <table>
            <tr class="py-none">
                <td class="bg-dark text-center text-white noborder py-none">
                    <b>MOVIMIENTOS DEL PERÍODO</b>
                </td> 
            </tr>
        </table>
        <table>
            <tr class="py-none">
                <td class="bg-dark text-center text-white noborder py-none" style="width:8%"></td> 
                <td class="bg-dark text-center text-white noborder py-none" style="width:11%"></td> 
                <td class="bg-dark text-center text-white noborder py-none" style="width:9%"></td> 
                <td class="bg-dark text-center text-white noborder py-none" style="width:30%"></td> 
                <td class="bg-dark text-center text-white noborder py-none" style="width:8%"></td> 
                <td class="bg-dark text-center text-white noborder py-none" style="width:13%"></td>  
                <td class="bg-dark text-center text-white noborder py-none" style="width:20%"><b>CAPITAL</b></td> 
            </tr>
        </table>
        
        <table>
            <tr>
                <td class="bg-dark text-center text-white py-none" style="width:8%"><b>FECHA</b></td> 
                <td class="bg-dark text-center text-white py-none" style="width:11%;"><b>NÚMERO DE <br>CONTROL</b></td> 
                <td class="bg-dark text-center text-white py-none" style="width:9%"><b>FOLIO</b></td> 
                <td class="bg-dark text-center text-white py-none" style="width:30%"><b>CONCEPTO</b></td> 
                <td class="bg-dark text-center text-white py-none" style="width:8%"><b>INTERÉS</b></td> 
                <td class="bg-dark text-center text-white py-none" style="width:13%"><b>IVA POR INTERÉS</b></td>  
                <td class="bg-dark text-center text-white py-none" style="width:10%"><b>CARGO</b></td> 
                <td class="bg-dark text-center text-white py-none" style="width:10%"><b>ABONO</b></td> 
                
            </tr>
        </table>
        ${movimientos(movimiento)}
        <div class="col-max my">
        </div>
        <div class="border">
            <table class="saltodePag">
                <tr class="py-none">
                    <td class="noborder" style="width:45%"></td> 
                    <td class="bg-dark text-center text-white noborder py-none" style="width:10%"><b>RIESGOS</b></td> 
                    <td class="noborder" style="width:45%"></td> 
                </tr>
            </table>
            <div style="padding-left:1%;">
            <b>
                <span>"AL SER TU CRÉDITO DE TASA VARIABLE, LOS INTERESES PUEDEN AUMENTAR."</span><br>
                <span>"INCUMPLIR TUS OBLIGACIONES TE PUEDE GENERAR COMISIONES E INTERESES MORATORIOS."</span><br>
                <span>"CONTRATAR CRÉDITOS POR ARRIBA DE TU CAPACIDAD DE PÁGO PUEDE AFECTAR TU HISTORIAL CREDITICIO." </span><br>
                <span>"EL AVALISTA, OBLIGADO SOLIDARIO O COACREDITADO RESPONDERA COMO OBLIGADO PRINCIPAL FRENTE A LA ENTIDAD FINANCIERA" </span><br>
                <span>"EN CASO DE QUE LA FECHA LIMITE DE PAGO SEA UN DÍA INHÁBIL, USTED PODRÁ PAGAR AL DÍA HÁBIL SIGUIENTE." </span><br>
                <span>"SI SU CRÉDITO ES DE TASA VARÍABLE, LOS INTERES QUE SE GENEREN A SU CARGO PUEDEN CAMBIAR Y, EN SU CASO AUMENTAR ANTE UN AJUSTE EN LAS TASAS DE INTERESES UTILIZADAS COMO <br>REFERENCIA."</span><br>
            </b>
            </div> 
        </div>
        <div class="col-max my">
            </div>
        <div class="border saltodePag" style="width:80%">
            <b>
                <table class="saltodePag">
                    <tr class="py-none">
                        <td class="noborder" style="width:35%"></td> 
                        <td class="noborder py-none" style="width:30%">SIGNIFICADO DE ABREVIATURAS</td> 
                        <td class="noborder" style="width:35%"></td> 
                    </tr>
                </table>
                <table>
                    <tr class="py-none">
                        <td class="noborder" style="width:25%"></td> 
                        <td class="noborder py-none" style="width:50%"><hr></td> 
                        <td class="noborder" style="width:25%"></td> 
                    </tr>
                </table>
                <table>
                    ${abreviaturas()}
                </table>
            </b>
        </div>
        <div class="col-max my">
            </div>
        <div class="row1">
            <b>
                <table>
                    <tr>
                        <td class="py-none noborder" style="width: 3%; padding-right: 0px;">
                            *
                        </td>
                        <td class="py-none noborder px-none" style="width: 97%;">
                            LOS INTERESES MORATORIOS SE ACTUALIZARÁN A LA FECHA DE PAGO.
                        </td>
                    </tr>
                    <tr>
                        <td class="py-none noborder" style="width: 3%; padding-right: 0px;">
                            **
                        </td>
                        <td class="py-none noborder px-none" style="width: 97%;">
                            FECHA MÁXIMA DE DISPOSICIÓN CUANDO EL CLIENTE PRESENTA UN SALDO DISPONIBLE DE SU CRÉDITO.
                        </td>
                    </tr>
                    <tr>
                        <td class="py-none noborder" style="width: 3%; padding-right: 0px;">
                        ***
                        </td>
                        <td class="py-none noborder px-none" style="width: 97%;">
                            SOLO PARA FINES INFORMATIVOS, LOS INTERESES MOSTRADOS SON CALCULADOS A LA FECHA DE CORTE INDICADA EN EL PRESENTE ESTADO DE CUENTA.
                        </td>
                    </tr>
                    <tr>
                        <td class="py-none noborder" style="width: 3%; padding-right: 0px;">
                            1
                        </td>
                        <td class="py-none noborder px-none" style="width: 97%;">
                            EL VALOR DE LA TASA CORRESPONDIENTE A LA PUBLICADA OFICIALMENTE AL FINAL DEL PERÍODO Y APLICA SOLO PARA FINES INFORMATIVOS.
                        </td>
                    </tr>
                    <tr>
                        <td class="py-none noborder" style="width: 3%; padding-right: 0px;">
                            2
                        </td>
                        <td class="py-none noborder px-none" style="width: 97%;">
                            NO APLICA PARA CRÉDITOS EMPRESARIALES CUYO IMPORTE AUTORIZADO DE CRÉDITO SEA IGUAL O SUPERIOR AL EQUIVALENTE A 900,00 UDIS.
                        </td>
                    </tr>
                </table>
            </b>
        </div>
        <div style="margin-top:53%;">
        </div>
        
      </body> 
    `;
};

const informacion_cliente = (acreditado) => {
    return `

        <table >
            <tr class="noborder px-none">
                <td class="row4 noborder border-x noborderright py-none">
                    <b>RFC</b>
                </td>
                <td class="row3 noborder border-x noborderleft py-none">
                    ${acreditado.rfc}
                </td>
            </tr>
            <tr class="noborder px-none">
                <td class="row4 noborder border-x noborderright py-none">
                    <b>NOMBRE</b>
                </td>
                <td class="row3 noborder border-x noborderleft py-none">
                    ${acreditado.nombre_completo}
                </td>
            </tr>
            <tr class="noborder">
                <td class="row4 noborder border-x noborderright py-none">
                    <b>DOMICILIO</b>
                </td>
                <td class="row3 noborder border-x noborderleft py-none">
                    ${acreditado.calle_numero}
                </td>
            </tr>
            <tr class="noborder">
                <td class="row4 noborder border-x noborderright py-none">
                    <b>${acreditado.tipo_asentamiento}</b>
                </td>
                <td class="row3 noborder border-x noborderleft py-none">
                    ${acreditado.colonia}
                </td>
            </tr>
        </table>
        <table class="noborder">

            <tr class="border-bottom">
                <td class=" noborder border-x noborderright py-none">
                <b>LOCALIDAD</b>
                </td>
                <td class="row4 noborder py-none">
                ${acreditado.acreditado_entidad}
                </td>
                <td class="row4 noborder py-none">
                <b>C.P</b>
                </td>
                <td class="row4 noborder border-x noborderleft  py-none">
                ${acreditado.cp}
                </td>
            </tr>
        </table> 
    `;
}

const informacion_interes = (intereses) => {
    return `
        <table>
            <tr class="noborder  border-top px-none">
                <td class="row3 noborder border-x noborderright py-none">
                    <b>CAT (SIN IVA)</b>
                </td>
                <td class="row4 noborder border-x noborderleft py-none text-right">
                    ${intereses.cat}
                </td>
            </tr>
            <tr class="noborder">
                <td class="row3 noborder border-x noborderright py-none">
                    <b>TASA DE INTERÉS ORDINARIA ANUAL</b>
                </td>
                <td class="row4 noborder border-x noborderleft py-none text-right">
                    ${intereses.tasa_interes_normal}
                </td>
            </tr>
            <tr class="noborder">
                <td class="row3 noborder border-x noborderright py-none">
                    <b>TASA DE INTERÉS MORATORIA ANUAL</b>
                </td>
                <td class="row4 noborder border-x noborderleft py-none text-right">
                    ${intereses.tasa_interes_moratorio}
                </td>
            </tr>
            <tr class="noborder border-bottom">
                <td class="row3 noborder border-x noborderright py-none">
                    <b>COMISIONES (SIN IVA)</b> 
                </td>
                <td class="row4 noborder border-x noborderleft py-none text-right">
                    ${intereses.comisiones}
                </td>
            </tr>
        </table>
    `;
}

const informacion_prestamo = (prestamo, pagos) => {
    return `
        <table class="">
            <tr class="py-none px-none">  
                <td class="noborder py-none px-none" style="width:63%; padding-right:1%;"  VALIGN="top">
                    <table>
                        <tr class=" py-none px-none"> 
                            <td class=" py-none px-none">
                                <table>
                                    <tr class="py-none px-none">
                                        <td class="bg-dark text-center text-white noborder py-none">
                                            <b>INFORMACIÓN DEL CRÉDITO</b>
                                        </td> 
                                    </tr>
                                </table>
                                <table class="py-none px-none">
                                    <tr class="px-none px-none">
                                        <td class="row2 noborder py-none px-none">  
                                            <table >
                                                <tr class="noborder ">
                                                    <td class="noborder py-none" style="width="60%">
                                                        <b>PRODUCTO</b>
                                                    </td>
                                                    <td class="noborder text-right py-none" style="width="40%">
                                                        ${prestamo.tipo_prestamo}
                                                    </td>
                                                </tr>
                                                <tr class="noborder">
                                                    <td class="noborder py-none" style="width="60%">
                                                        <b>IMPORTE</b>
                                                    </td>
                                                    <td class="noborder py-none text-right" style="width="40%">
                                                        ${prestamo.importe}
                                                    </td>
                                                </tr>
                                                <tr class="noborder">
                                                    <td class="noborder py-none" style="width="60%">
                                                        <b>CAPITAL INICIAL DEL PERÍODO</b>
                                                    </td>
                                                    <td class="noborder py-none text-right" style="width="40%">
                                                        ${prestamo.capital_inicial_periodo}
                                                    </td>
                                                </tr>
                                                <tr class="noborder">
                                                    <td class="noborder py-none" style="width="60%">
                                                        <b>CAPITAL FINAL DEL PERÍODO</b>
                                                    </td>
                                                    <td class="noborder py-none text-right" style="width="40%">
                                                        ${prestamo.capital_final_periodo} 
                                                    </td>
                                                </tr>
                                                <tr class="noborder">
                                                    <td class="noborder py-none" style="width="60%">
                                                        <b>CAPITAL VENCIDO DEL PERÍODO</b>
                                                    </td>
                                                    <td class="noborder py-none text-right" style="width="40%">
                                                        ${prestamo.capital_vencido_periodo}
                                                    </td>
                                                </tr>
                                                <tr class="noborder ">
                                                    <td class="noborder py-none" style="width="60%">
                                                        <b>PLAZO DEL CREDÍTO</b>
                                                    </td>
                                                    <td class="noborder text-right py-none" style="width="40%">
                                                    ${prestamo.pagares}  ${prestamo.periodo_descripcion_pagares}
                                                    </td>
                                                </tr>
                                            </table> 
                                        </td>
                                        <td class="row2 noborder py-none" style="padding-left: 3%;">
                                            <table>
                                                <tr class="noborder">
                                                    <td class="row3 noborder py-none">
                                                        <b>PERÍODO ESTADO DE CUENTA</b>
                                                    </td>
                                                    <td class="row4 noborder text-right py-none">
                                                        <!--${prestamo.periodo_estado_cuenta}-->
                                                        ${prestamo.periodo_descripcion}
                                                    </td>
                                                </tr>
                                                <tr class="noborder">
                                                    <td class="row3 noborder py-none">
                                                        <b>DÍAS DEL PERÍODO</b>
                                                    </td>
                                                    <td class="row4 noborder text-right py-none">
                                                        ${prestamo.periodo_dias}
                                                    </td>
                                                </tr>
                                                <tr class="noborder">
                                                    <td class="row3 noborder py-none">
                                                        <b>PRÓXIMO VENCIMIENTO</b>
                                                    </td>
                                                    <td class="row4 noborder text-right py-none">
                                                        ${prestamo.fecha_proximo_vencimiento} 
                                                    </td>
                                                </tr>
                                                <tr class="noborder">
                                                    <td class="row3 noborder py-none">
                                                        <b>FECHA DE OTORGAMIENTO</b>
                                                    </td>
                                                    <td class="row4 noborder text-right py-none">
                                                        ${prestamo.fecha_otorgamiento}
                                                    </td>
                                                </tr>
                                                <tr class="noborder">
                                                    <td class="row3 noborder py-none">
                                                        <b>FECHA DE VENCIMIENTO</b>
                                                    </td>
                                                    <td class="row4 noborder text-right py-none">
                                                        ${prestamo.fecha_vencimiento}
                                                    </td>
                                                </tr>
                                                <tr class="noborder">
                                                    <!--<td class="row3 noborder py-none">
                                                        <b>INTERESES DEVENGADOS DEL PERÍODO</b>
                                                    </td>
                                                    <td class="row4 noborder text-right py-none">
                                                        ${prestamo.devengados_periodo}
                                                    </td>-->
                                                    <td class="noborder">
                                                    </td>
                                                    <td class="noborder">
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td> 
                <td class="noborder py-none px-none" style="width:37%; padding-left:1%;"  VALIGN="top">
                    ${resumen_pagos(prestamo, pagos)}
                </td>
            </tr>
        </table> 
    `;
}

const resumen_pagos = (prestamo, pagos) => {
    return `
        <table>
            <tr class="py-none px-none">
                <td class="bg-dark text-center text-white noborder py-none px-none">
                    <b>RESUMEN DE PAGOS</b>
                </td> 
            </tr>
        </table>
        <table>
            <tr class="noborder border-x py-none">
                <td class="row3 noborder py-none">
                    <b>AMORTIZACIÓN A CAPITAL</b>
                </td>
                <td class="row4 noborder text-right py-none">
                    ${pagos.amortizacion_capital}
                </td>
            </tr>
            <tr class="noborder border-x">
                <td class="row3 noborder py-none">
                    <b>NO. DE PAGOS A CAPITAL</b>
                </td>
                <td class="row4 noborder text-right py-none">
                    ${pagos.numero_pagos_capital_periodo}
                </td>
            </tr>
            <tr class="noborder border-x">
                <td class="row3 noborder py-none">
                    <b>INTERESES</b>
                </td>
                <td class="row4 noborder text-right py-none">
                    ${pagos.intereses}
                </td>
            </tr>
            <tr class="noborder border-x">
                <td class="row3 noborder py-none">
                    <b>IVA POR INTERESES</b>
                </td>
                <td class="row4 noborder text-right py-none">
                    ${pagos.intereses_iva} 
                </td>
            </tr>
            <!--tr class="noborder border-x">
                <td class="row3 noborder py-none">
                    <b>CAPITAL VENCIDO</b>
                </td>
                <td class="row4 noborder text-right py-none">
                    ${pagos.capital_vencido}
                </td>
            </tr>
            <tr class="noborder border-x">
                <td class="row3 noborder py-none">
                    <b>INTERESES VENCIDOS</b>
                </td>
                <td class="row4 noborder text-right py-none">
                    ${pagos.intereses_vencidos}
                </td>
            </tr-->
            <tr class="noborder border-x">
                <td class="row3 noborder py-none">
                    <b>INTERESES MORATORIOS (*)</b>
                </td>
                <td class="row4 noborder text-right py-none">
                    ${pagos.intereses_moratorios}
            </tr>
            <tr class="noborder border-x border-bottom"> 
                <td class="row3 noborder py-none">
                    <b>IVA POR INTERESES MORATORIOS</b>
                </td>
                <td class="row4 noborder text-right py-none">
                    ${pagos.intereses_moratorios_iva}
                </td>
            </tr>
        </table>
    `;
}

const totales = (prestamo,pagos) => {
    return `
        <table>
            <tr>
                <td class="row2 bg-dark text-center text-white py-none">
                    <b>IMPORTE PRÓXIMO PAGO</b>
                </td>
                <td class="row2 text-center py-none">
                    ${pagos.importe_proximo_pago}
                </td>
            </tr>
            <tr>    
                <td class="row2 bg-dark text-center text-white py-none"> 
                    <b>IMPORTE PAGADO</b>
                </td>
                <td class="row2 text-center py-none">
                    ${pagos.importe_pago_periodo}
                </td>
            </tr>
            <!--tr>
                <td class="row2 bg-dark text-center text-white py-none"> 
                    <b>TOTAL PAGADO</b>
                </td>
                <td class="row2 text-center py-none">
                    ${pagos.total_pagado}
                </td>
            </tr-->
        </table>
    `;

}

const movimientos = (movimiento) => {
    let lista_movimiento = movimiento.lista;    
    if (!es_valido(lista_movimiento)) {
        return `
        <table>
            <tr class="text-center">
                <td colspan="6">
                    SIN REGISTROS
                </td>
            </tr>
        </table>
        `;
    }
    let cadena_movimientos = ` <table> `;

    lista_movimiento.forEach(mapa_movimiento => {
        json_movimiento = mapa_movimiento;
        cadena_movimientos += `
                <tr>
                    <td class="py-none text-center" style="width:8%">${json_movimiento.fecha_aplicacion}</td>
                    <td class="py-none text-center" style="width:12%">${json_movimiento.referencia}</td>
                    <td class="py-none text-center" style="width:9%">${json_movimiento.folio}</td>
                    <td class="py-none" style="width:30%">${json_movimiento.concepto}</td>
                    <td class="py-none text-right" style="width:8%">${json_movimiento.interes}</td>
                    <td class="py-none text-right" style="width:13%">${json_movimiento.interes_iva}</td>
                    <td class="py-none text-right" style="width:10%">${json_movimiento.cargo}</td>
                    <td class="py-none text-right" style="width:10%">${json_movimiento.abono}</td>
                </tr>
        `;
    });

    cadena_movimientos += `
                <table class="noborder saltodePag" style="margin-top:5px">
                    <tr class="noborder">
                        <td class="noborder py-none" style="width:50%"></td>
                        <td class="bg-dark text-white py-none" style="width:9%"><b>TOTAL</b></td>
                        <td class="py-none text-right" style="width:8%">${movimiento.total_interes}</td>
                        <td class="py-none text-right" style="width:13%">${movimiento.total_interes_iva}</td>
                        <td class="py-none text-right" style="width:10%">${movimiento.total_cargo}</td>
                        <td class="py-none text-right" style="width:10%">${movimiento.total_abono}</td>
                    </tr>
                </table>
        `;

    cadena_movimientos += `</table>`;
    return cadena_movimientos;
}

const es_valido = (arreglo) => {
    if (arreglo == undefined || arreglo.length === 0 || (arreglo.length === 1 && Object.entries(arreglo[0]).length === 0)) {
        return false;
    }
    return true;
}

const abreviaturas = () => {
    return `
        <tr class="py-none">
            <td class="noborder py-none" style="width:10%">ACS</td> 
            <td class="noborder py-none" style="width:40%">APERTURA CRÉDITO SIMPLE</td> 
            <td class="noborder py-none" style="width:10%">NO.</td> 
            <td class="noborder py-none" style="width:40%">NÚMERO</td> 
        </tr>
        <tr class="py-none">
            <td class="noborder py-none" style="width:10%">CAT</td> 
            <td class="noborder py-none" style="width:40%">COSTO ANUAL TOTAL</td> 
            <td class="noborder py-none" style="width:10%">OPE</td> 
            <td class="noborder py-none" style="width:40%">OPERACIÓN</td> 
        </tr>
        <tr class="py-none">
            <td class="noborder py-none" style="width:10%">CRED</td> 
            <td class="noborder py-none" style="width:40%">CRÉDITO</td> 
            <td class="noborder py-none" style="width:10%">SBC</td> 
            <td class="noborder py-none" style="width:40%">SALVO BUEN COBRO</td> 
        </tr>
        <tr class="py-none">
            <td class="noborder py-none" style="width:10%">DEP</td> 
            <td class="noborder py-none" style="width:40%">DEPÓSITO</td> 
            <td class="noborder py-none" style="width:10%">SPEI</td> 
            <td class="noborder py-none" style="width:40%">SISTEMA DE PAGO ELECTRÓNICO INTERBANCARIO</td> 
        </tr>
        <tr class="py-none">
            <td class="noborder py-none" style="width:10%">DIF</td> 
            <td class="noborder py-none" style="width:40%">DIFERENCIA</td> 
            <td class="noborder py-none" style="width:10%">TEF</td> 
            <td class="noborder py-none" style="width:40%">TRANSFERENCIA ELECTRÓNICA DE FONDOS</td> 
        </tr>
        <tr class="py-none">
            <td class="noborder py-none" style="width:10%">DISP</td> 
            <td class="noborder py-none" style="width:40%">DISPOSICIONES</td> 
            <td class="noborder py-none" style="width:10%">TIIE</td> 
            <td class="noborder py-none" style="width:40%">TASA DE INTERÉS INTERBANCARIA DE EQUILIBRIO</td> 
        </tr>
        <tr class="py-none">
            <td class="noborder py-none" style="width:10%">INT</td> 
            <td class="noborder py-none" style="width:40%">INTERESES</td> 
            <td class="noborder py-none" style="width:10%">$</td> 
            <td class="noborder py-none" style="width:40%">MONEDA NACIONAL</td> 
        </tr>
        <tr class="py-none">
            <td class="noborder py-none" style="width:10%">IVA</td> 
            <td class="noborder py-none" style="width:40%">IMPUESTO AL VALOR AGREGADO</td>
        </tr>
    `;
}
module.exports = {
    pagare: estado_cuenta,
    validaciones,
    pages_border,
}