<div id="infventas" class="col-md-12">
<br>
<div class=""  style=" border:solid 2px #EEEEEE; border-radius:10px; background-color:none; width:100%; padding:7px;">
	<div class="row">
		<div class="col-md respoDiv " id="infmenu">
            

        <div> Fecha inicial: &nbsp;<input class="dateWidth1" type="date" id="fecha1"   value="<?php echo date('Y-m-d');?>"></div>
        <div> &nbsp;Fecha final:&nbsp;<input class="dateWidth2" type="date"  id="fecha2"   value="<?php echo date('Y-m-d');?>"></div>
       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <div class="selectWidth">
                <select id="selecioninfo" class="form-control form-control-sm" >&nbsp;
                     <option >iva</option>
                     <option >Sin_iva</option>
                </select>
        </div>  
        
    
        &nbsp;
        <input  class="form-control form-control-sm" style="width:150px; height:25px;" type="number" name="" id="infvendedor" placeholder="codigo vendedor"></input>&nbsp;&nbsp;

        <!-- <input  class="form-control form-control-sm" style="width:80px; height:25px;" type="text" name="" id="infoTurno" ></input>&nbsp;&nbsp; -->


    

        <input type="button" class="puntos btn  btn-sm searchIcon" value="" title="buscar vendedor" id="buscaventas">


        <label for=""  class="col-4 col-md-2">Turno o Usuario<input type="text" list="selecturnoUs" id="infoTurno"  value="<?php if($activarTurnos==2){echo($_SESSION["usuario"]);} ?>" placeholder="Turno" <?php if($tipoUser==0 && $activarTurnos==2){echo("disabled");} ?> class="form-control ">
          <datalist id="selecturnoUs">
           
            <?php
             
                if($activarTurnos==2){

                    if($tipoUser==1){
                        $dtos= $_SESSION["usuariosB"];

                        foreach ($dtos as $value){
                        // Generar dinámicamente las opciones
                        

                        echo "<option value='" . $value['nonombre'] . "'>" . $value['nonombre'] . "</option>";
                    }
                    }
        }
          ?>

        
            
            
           
          </datalist>
        </label>





        <input type="button" class="btn btn-info text-dark btn-sm" value="ver detallado" id="verventas" style="border-radius: 6px;">&nbsp;

    
        </div>

        <div class="col-md-4" id="mostrartotal" >
        
        <b class="totalTexto">TOTAL VENTA &nbsp; </b><label for=""><input <?php echo($verVentas); ?> id="valortotal" type="text" class="col-md-7  totalTextoIn" disabled="disabled" ></label>
        <input type="button" class="btn btn-success text-dark btn-sm" value="Estado Doc_Eletronico" id="Doc_Eletronico" data-bs-toggle="modal" data-bs-target="#modalFacElect" style="border-radius: 6px;">
       
        </div>
      
		</div>
        
        <br>
        <table id="tablainfov" class="estilostabla table table-hover table-wrapper-scroll-y my-custom-scrollbar" >
        
        <thead  class="table-primary" style="position: sticky; top: 0;">  
                    <tr class="cabeceratabla"  >
                         <th scope="col" class=" text-center "  style="width:15%" >Codigo</th>
                        <th scope="col" class="text-center "     style="width:30%">Nombre</th>     
                        <th scope="col" class="text-center "  style="width:8%">Cantida_caja</th>
                        <th scope="col" class="text-center "  style="width:8%">Cantida_frcc</th>
                        <th scope="col" class="text-center"  style="width:5%">cliente</th>
                        <th scope="col" class="text-center"  style="width:5%">vendedor</th>
                        <th scope="col" class="text-center"  style="width:5%" <?php echo($verVentas); ?>>valor</th>
                        <th scope="col" class="text-center"  style="width:5%">factura</th>
                        <th scope="col" class="text-center"  style="width:5%">Bodega</th>
                       
                  
                    </tr>
               
                    </thead>
        <tbody id="tablacargventas"  class="col-md-7 table table-bordered table-striped" >
                     
        


        </tbody>


        </table>
		
	</div>
</div>
<?php
 include("modafactElectronica.php");
?>























       
       

    
    
       
