<div class="window-lista resumen_cuenta">
    <div class="table-content">
        <div class="ctamadre">
            <label>CTA-MADRE: <?php echo $comprobantes['saldos']['cliente']['cta'] ?></label>
            <label><?php echo $comprobantes['saldos']['cliente']['cli'] ?></label>
        </div>
        
        <ul class="title">
            <li>
                <span class="long">Fecha</span>
                <span class="long">Comprobante</span>
                <span class="fpa">FPA</span>
                <span class="med">TCO</span>
                <span class="deb">Debito</span>
                <span class="cred">Credito</span>
                <span class="sal">Saldo</span>
                <span class="rtos">Rtos.Pend.</span>
                <span class="obs">Observaciones</span>
                <span >Vencimientos</span>
            </li>
        </ul>
        
        <?php if ($comprobantes['saldos']['tipo']=="resumen" ): ?>
        <div class="div_saldo titulos">
            <div class="saldo">Saldo al: <?php echo $comprobantes['saldos']['desde'] ?></div>
            <div class="debito"><?php echo $comprobantes['saldos']['deb'] ?></div>
            <div class="credito"><?php echo $comprobantes['saldos']['cre'] ?></div>
            <div class="saldos"><?php echo $comprobantes['saldos']['sal'] ?></div>
            <div class="pendientes"><?php echo $comprobantes['saldos']['rpe'] ?></div>
        </div>
        <?php endif; ?>
        
        <div class="content-lista-scroll" id="lista_dat">
            <ul class="content">
                <?php foreach($comprobantes['ret'] as $comprobante){ ?>
                <li data-tco="<?=$comprobante['tco_o']?>" data-nco="<?=$comprobante['nco_o']?>" data-tip="<?= $comprobante['tip_o'] ?>" data-suc="<?=$comprobante['suc_o']?>" data-cod="<?=$comprobante['cod_o']?>">
                    <span class="fec"><?=$comprobante['fep']->date ?></span>
                    <span class=""><?=$comprobante['ncNCO']?></span>
                    <span class="fpa"><?=$comprobante['fpa']?></span>
                    <span class="tco"><?=$comprobante['tco']?></span>
                    <span class="deb">&nbsp;<?=$comprobante['DEB']?></span>
                    <span class="cred">&nbsp;<?=$comprobante['CRED']?></span>
                    <span class="sal">&nbsp;<?=$comprobante['SAL']?></span>
                    <span class="rtos">&nbsp;</span>
                    <span class="obs">&nbsp;<?=$comprobante['obs']?></span>
                    <span class="ven">&nbsp;<?=$comprobante['ven']?></span>
                    
                </li>
                <?php } ?>
            </ul>
            
            <div class="div_saldo titulos">
                <div class="saldo">Totales al: <?php echo $comprobantes['totales']['hasta'] ?></div>
                <div class="debito"><?php echo $comprobantes['totales']['deb'] ?></div>
                <div class="credito"><?php echo $comprobantes['totales']['cre'] ?></div>
                <div class="saldos"><?php echo $comprobantes['totales']['sal'] ?></div>
                <div class="pendientes"><?php echo $comprobantes['totales']['rtos'] ?></div>
                <div class="obs"><?php echo $comprobantes['totales']['obs'] ?></div>
            </div>
            <?php if(!$comprobantes['ret']): ?>
            <div class="div_saldo msgnodata">
                <div class="msg">Cliente sin Datos en Cta. Corriente. - Puede tener Remitos para facturar ( pendientes ). </div>
            </div>
            <?php endif; ?>

        </div>
        
        
        
            <div class="button_form">
                <button onclick="cerrar_lista();">Cerrar</button>
            </div>
        
    </div>
</div>

