
<form id="facturaspagos" style="display: none;margin-top: 5px;margin-left:20px ;">
    
    <div class="col-12">
        <span id="txt_seleccionados"></span>
    </div>
    <table class="table table-responsive-sm align-items-center table-flush table-hover table_minimize">
        <thead class="thead-light">
            <tr style="font-size: 13px">
                <th style="width:3%"><input type="checkbox" id="check_thead" onclick="selectChecksTodo()"></th>
                <th class="tabla1" scope="col" style="width:15%">UUID</th>
                <th class="tabla1" scope="col" style="width:15%">Nombre Emisor</th>
                <th class="tabla1" scope="col" style="width:15%">Nombre Receptor</th>
                <th class="tabla1" scope="col" style="width:10%">Fecha Emisión</th>
                <th class="tabla1" scope="col"style="width:10%">Monto</th>
                <th class="tabla1" scope="col">Abono</th>
                <th class="tabla1" scope="col">Saldo</th>
                
            </tr>
        </thead>
        <tbody id="tbody_upload_xml">
            <?php if($traecontxml){ 
                 $a=1;
                 $sumamonto=0;
                 foreach ($traecontxml as $xmls) { 
                  $sumamonto +=$xmls->monto;
                  
                ?>
                
                <tr style="font-size: 11.5px">
                    <td tabla-title="Seleccionar" class='tabla'><input id='id_registros_<?php echo $a?>' type='checkbox' id_oc='<?php echo $xmls->idDoc ?>' oc='<?php echo $xmls->id_oc ?>' value='<?php echo $xmls->id ?>'  name='id_registro' class='id_registro' onclick='selectChecksregistro(<?php echo $a?>)'></td>
                    <td><?php echo $xmls->UUID ?></td>
                    <td><?php echo $xmls->emisor ?></td>
                    <td><?php echo $xmls->receptor ?></td>
                    <td><?php echo $xmls->f_emision ?></td>
                    <td>$ <?php echo number_format($xmls->monto,2, '.', ',') ?>
                        <input class="form-control" type="hidden" size="2px" id="monto_<?php echo $a?>" name="monto_<?php echo $a?>" clase="abonos" value="<?php echo number_format($xmls->monto,2, '.', ',') ?>" >
                    </td>
                    <td><input class="form-control" type="text" size="2px" id="abonos_<?php echo $a?>" name="abonos_<?php echo $a?>" clase="abonos" value="<?php echo number_format($xmls->total_abonos,2, '.', ',') ?>" disabled onkeypress="if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;" onchange="calcula_saldo(<?php echo $a?>)" ></td>
                    <td><input class="form-control" type="text" size="2px" id="saldos_<?php echo $a?>" name="saldos_<?php echo $a?>" clase="saldos_" value="<?php echo number_format($xmls->ultimo_saldo,2, '.', ',')  ?>" disabled >
                    </td>
                    
                </tr>
            <?php  $a++; } 
            } ?>
            <input type="hidden" id="montototal" name="montototal"  value="<?php echo number_format($sumamonto,2, '.', ',') ?>" >
        </tbody>
    </table>
    </form>


