
<div class="modal fade" id="ifcaja" tabindex="-1" role="dialog" data-keyboard="true">
  <div class="modal-dialog modal-xl ">
    <div class="modal-content ">
      <div class="modal-header">
        <h5 class="modal-title">DETALLE DE VENTAS</h5>
        <button type="button" class="btn btn-success" id="imprimirDetalleProduc">Detalle Producto</button>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">

      
      <div id="cajamodal" class="">
         
            
           <label for="" class="col">Fecha inicial: <input type="date" id="fec1"   value="<?php echo date("Y-m-d")?>"></label>
          <label for="" class="col">  <input type="time" id="horaI" name="hora" placeholder="HH:MM:SS" value="00:00:00"></label>
           <label for="" class="col">Fecha final: <input type="date"  id="fec2"   value="<?php echo date("Y-m-d")?>"></label>
           <label for="" class="col">  <input type="time" id="horaF" name="hora" placeholder="HH:MM:SS" value="23:59:59"></label>
            <label for="" class="col"> Numero Informe <input type="text" id="numeroinformecaja"></label>
            <input type="button" class="btn btn-success" id="reimprimirinforme" value="Reimprimir">
         
        
      </div>

		  <form id="" method="post" name="crearcleinte">
     
   
                          
                          
                            <div id="cajadatos" class="contHead" >

                                      <div class="divComboEfectivo col-md-2 col-4"><label class="">Efectivo Caja:<input type="text" style="color:  #060606; " class="imputForm" value="0" disabled="disabled"  id="efec"> </label></div>   
                                      <div class="divComboEfectivo col-md-2 col-4"><label class="">Efectivo Venta:<input type="text" style="color:  #060606; " class="imputForm" value="0" disabled="disabled"  id="efecVent"> </label></div>                            
                                      <div class="divComboTarCred col-md-2 col-4"><label class="">Transferencia:<input type="text" style="color:  #060606;" class="imputForm" disabled="disabled" value="0"  id="Tcred" ></label></div>
                                      <div class="divComboDeb col-md-2 col-4"><label class="">Tarjetas:<input type="text" type="text" style="color:  #060606;" class="imputForm" disabled="disabled" value="0"  id="Tdeb" ></label></div>
                                      <div class="divComboGastos col-md-2 col-4"><label class="">Gastos:<input type="text"  class="imputForm" style="color:  #060606;" disabled="disabled" value="0"  id="gastocaja"> </label></div>
                                      <div class="divCombo col-md-2 col-4"><label class="">Credito Cliente:<input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="crediv"> </label></div>
                                      <div class="divCombo col-md-2 col-4"><label class="">devoluciones:<input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="devocaja"> </label></div>
                                      <div class="divCombo col-md-2 col-4"><label class="">Abonos:<input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="abonoscaja"> </label></div>
                                      <div class="divCombo col-md-2 col-4"><label class="">Retiros:<input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="retirosEfe"> </label></div>

                                      <div class="divCombo col-md-2 col-4"><label class="">Servicio:<input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="idservicioIn"> </label></div>

                            </div>  
                          
                            <div id="cajabases" class="contHead">
                                    <div  class="col-md-2 col-3" ><label class="col"> Base5 <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb;  " disabled="disabled" value="0"  id="b5"> </label></div>
                                    <div style="margin-left:1%" class="col-md-1 col-3"><label class="col"> Iva5  <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb;  " disabled="disabled" value="0"  id="i5"> </label></div>
                                    <div style="margin-left:1%" class="col-md-2 col-3"><label class="col"> Base19 <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb;  " disabled="disabled" value="0"  id="b19"> </label></div>
                                    <div style="margin-left:1%" class="col-md-1 col-3"><label class="col">Iva19  <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb;  " disabled="disabled" value="0"  id="i19"> </label></div>

                                    <div style="margin-left:1%" class="col-md-2 col-3"><label class="col"> ivaipc <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb;  " disabled="disabled" value="0"  id="ivaipc"> </label></div>
                                    <div style="margin-left:1%" class="col-md-1 col-3"><label class="col">bseipc  <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb;  " disabled="disabled" value="0"  id="bseipc"> </label></div>

                                    <div style="margin-left:1%" class="col-md-2 col-3"><label class="col">iva otro<input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb;  " disabled="disabled" value="0"  id="votroiva"> </label></div>
                                    <div style="margin-left:1%" class="col-md-1 col-3"><label class="col">base otro  <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb;  " disabled="disabled" value="0"  id="vbaseotro"> </label></div>



                                    <div style="margin-left:1%" class="col-md-2 col-3"><label class="col"> Exento <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb;  " disabled="disabled" value="0"  id="nograbado"> </label></div>
                                    <div style="margin-left:1%" class="col-md-2 col-3"><label class="col"> Excluido <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb;  " disabled="disabled" value="0"  id="excluido"> </label></div>
                                    
                            </div>

  
                            <div style="background-color:#f5f5f5; border-radius:10px; padding:3%;">
                            <div style="text-align:center"><h4><b style="background-color: #ffff; border-radius:8px; padding:4px;">Detalles de Compra</b></h4></div>
                            <div id="cajacompra" style="display:flex; flex-wrap: wrap; ">

                                <div style="margin-left:1%" class="col-md-2 col-3"><label class="col"> Compra Credito  <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="comcredi"> </label></div>
                                <div style="margin-left:1%" class="col-md-2 col-3"><label class="col"> Compra Contado  <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="comcont"> </label></div>
                                <div style="margin-left:1%" class="col-md-1 col-3"><label class="col"> Iva  5 <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="civa5"> </label></div>
                                <div style="margin-left:1%" class="col-md-2 col-3"><label class="col"> Base 5 <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="cbase5"> </label></div>
                                <div style="margin-left:1%" class="col-md-1 col-3"><label class="col"> Iva 19  <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="civa19"> </label></div>
                                <div style="margin-left:1%" class="col-md-2 col-3"><label class="col"> Base 19  <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="cbase19"> </label></div>
                                <div style="margin-left:1%" class="col-md-1 col-3"><label class="col">  iva otro<input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="ivaotroc"> </label></div>
                                <div style="margin-left:1%" class="col-md-2 col-3"><label class="col"> base otro <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="baseotroc"> </label></div>
                               
                               
                                <div style="margin-left:1%" class="col-md-2 col-3"><label class="col"> Excento  <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="cexcento"> </label></div>
                                <div style="margin-left:1%" class="col-md-2 col-3"><label class="col"> Excluido <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="cexcluido"> </label></div>

                            </div>
                            </div>
                         
                         

                            <div class="contHead">
                                 <div style="margin-left:1%" class="col-md-2 col-3"><label class="col">Base Caja: <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="Basecaja"> </label></div>
                                 <div style="margin-left:1%" class="col-md-2 col-3"><label class="col">Total Pos <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="tpos"> </label></div>
                                
                                 <div style="margin-left:1%" class="col-md-2 col-3"><label class="col">Total Electronico <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="telectronico"> </label></div>

                                 <div style="margin-left:1%" class="col-md-2 col-3"><label class="col">$Domicilio <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="tdomicilio"> </label></div>
                                 <div style="margin-left:1%" class="col-md-2 col-3"><label class="col">$Convenios <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="tConvenios"> </label></div>

                                 <div style="margin-left:1%" class="col-md-2 col-3"><label class="col">Total venta <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="tventa"> </label></div>
                               
                                 <div style="margin-left:1%" class="col-md-2 col-3"><label class="col">Total Efectivo <input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="tefectivoB"> </label></div>
                               
                               
                                 <div style="margin-left:1%" class="col-md-2 col-3"><label class="col">Total Cuadre <abbr title="(TOTAL VENTA +ABONO)-(VENTAS CREDITO  - GASTOS- RETIROS)-(DEVOLUVIONES OTRAS FECHAS)"><input type="text"  class="imputForm" style="color:  #060606; background:  #ebebeb" disabled="disabled" value="0"  id="ttcaja"></abbr> </label></div>
                            </div>
                             
                            
                            <div class="">
                           

                           

</span>
<label for=""  class="col-4 col-md-2">Turno o Usuario<input type="text" list="selecturno" id="usuarioactual" value="<?php if($activarTurnos==2 && $tipoUser==0){echo($_SESSION["usuario"]);}else{echo("");}   ?>" class="form-control ">
          <datalist id="selecturno">
            <option ></option>
            <?php
    if($activarTurnos==2){
            $dtos= $_SESSION["usuariosB"];
           
            foreach ($dtos as $value){
              // Generar dinámicamente las opciones
          
              echo "<option value='" . $value['nonombre'] . "'>" . $value['nonombre'] . "</option>";
             

              
          }

        }
          ?>

        
            
            
           
          </datalist>
        </label>



                            <a  class="btn btn-primary col-md-3 "  data-bs-dismiss="modal" >Cancelar</a>&nbsp;&nbsp;		
                        
                            <button type="button" class="btn btn-primary col-md-3 " id="infconsultar" >Consultar</button> &nbsp;&nbsp;
                            <button type="button" class="btn btn-success col-md-3 " id="impinfo" >Imprimir</button> &nbsp;&nbsp;
                            </div>
            </form>
			</div>
			




      </div>
      
    </div>
  </div>
</div>


</div>




