
<script>
    // Establecer el valor del atributo "min" al valor de la fecha actual
    document.getElementById('fpgo').min = new Date().toISOString().split('T')[0];
</script>
<form id="facturaspro" style="display: none;margin-top: 5px;margin-left:20px ;">
    <p><div class="form-group col-lg-2 col-md-4 col-md-12">
        <label for="descripcion">Fecha aprox. de pago</label>
                            
        <input class="form-control" type="date" size="6" id="fpgo" name="fpgo" value="" >
                            

    </div></p>
    <div class="col-12">
        <span id="txt_seleccionadosc"></span>
    </div>
    <div class="col-12">
        <span id="txt_sumaseleccionadosc"></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_c" onclick="selectChecksTodo_c()"></th>
                <th class="tabla1" scope="col" style="width:5%">#O.C</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:7%">Monto</th>
                <th class="tabla1" scope="col"style="width:5%"></th>
            </tr>
        </thead>
        <tbody id="tbody_upload_xml">
            <?php if($traecontxml){ 
                 $a=1;
                 $consaldo="";
                 foreach ($traecontxml as $xmls) { 

                    if($xmls->liquidado=='1'){
                        $consaldo="Con saldo";
                    }

                   
                ?>
                <tr style="font-size: 11.5px">
                    <td tabla-title="Seleccionar" class='tabla'><input id='id_registrosC_<?php echo $a?>' type='checkbox' id_user_crea='<?php echo $xmls->id_user_c ?>' id_oc='<?php echo $xmls->id_oc ?>' idDoc='<?php echo $xmls->idodc ?>' monto='<?php echo $xmls->monto ?>' value='<?php echo $xmls->id ?>'  name='id_registroC' class='id_registro_c' onclick='selectChecksregistrocontra(<?php echo $a?>)'></td>
                    <td><?php echo $xmls->id_oc ?></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, '.', ',') ?></td>
                    <td><?php echo $consaldo ?></td>
                    
                    
                </tr>
            <?php  $a++; } 
            } ?>
        </tbody>
    </table>
    </form>


