

<div id="dfactura" class="col-md-12 container-fluid">
    <title class="titulosModulos text-center">Devolucion/Impresiones</title>


    <br>
    <div class="col-md-12 align-items: center" id="dev" style="background: #FFFFFF; border-radius: 15px 15px 15px 15px; padding:10px;">
    <label class="col-md-2"  for=""><input id="numerofactd" type="search" class="form-control" placeholder="Numero de factura"> </input></label>
    <label class="col-md-2"  for=""><input class="puntos btn  btn-sm searchIcon" type="button"  id="buscarnumero" value="."></input></label>
    <label class=""  for=""><input class="btn btn-primary" type="button"  id="reimprimir" value=" ⚙️ Re_Imprimir"></input></label>    
    <label class=""  for=""><input class="form-control" type="text" id="comentariosdev" disabled="disable" style="width:330px;"></input></label>
       
    <label class=""  for=""><input class="btn btn-info" <?php if($_SESSION["multibodega"]!=3){echo("");} ?> type="button"  id="reimprimirCall" value=" 📬 Call Domicilios "></input></label>  
      
    
    <label class=""  for=""><input class="btn btn-success" type="button"  id="reimprimirDV" value="  Re_Impri_Dv"></input></label>   
        
     </div>
     
     
<form action=""  id="dffactura"  method="post" >
  
    <div id="dcliente">
        
        <label class="col-md-2"  for="">Cliente  <input id="dnit" disabled="disabled"  name="cliente" class="form-control form-control-sm col-md-12" value="" type="search" placeholder=""></label>
        
        <label class="col-md-2" for="">Nombre Cliente<input id="dnombre" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value=""></label>
        <label class="col-md-2" for="">Direccion<input id="ddire" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>
        <label class="col-md-2" for="">Correo<input id="dcorreo" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>
        <label class="col-md-1" for="">Telefono<input id="dtel" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>
        <label class="col-md- col-2">  Usuario DV
          <select id="selecuseDV" class="form-control" <?php if($tipoUser==0){echo("disabled");} ?>>
            <option value="<?php echo($_SESSION["usuario"]); ?>"><?php echo($_SESSION["usuario"]); ?></option>
            <?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>";
          }
        }
        }
          ?>

        
            
            
           
          </select>
        </label>
        
        
        
        
        
        
        
        <label class="col-md-2"  hidden="true" for="">bodegaInventario:<input id="bodegaInventario" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>  

            <label class="col-md-2"  hidden="true" for="">Tipo_Fat:<input id="dtipoFac" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>        
            <label class="col-md-2" hidden="true"  for="">Nombre_elect<input id="Nombre_electd" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>          
            <label class="col-md-2" hidden="true" for="">Apellido_elect<input id="Apellido_electd" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>
            <label class="col-md-2" hidden="true"  for="">Naturaleza_elect<input id="Naturaleza_electd" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>
            <label class="col-md-2" hidden="true"  for="">Regimen_elect<input id="Regimen_electd" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>
            <label class="col-md-2" hidden="true" for="">tipoIdentificacion_elect<input id="tipoIdentificacion_electd" disabled="disabled" class="form-controlform-control-sm  col-md-12" type="text" value="" ></label>
            <label class="col-md-2" hidden="true" for="">responsabilidad_elec<input id="responsabilidad_elecd" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>
            <label class="col-md-2" hidden="true" for="">NumeroFactElectronica<input id="NumeroFactElectronica" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>
            <label class="col-md-2" hidden="true" for="">Ciudad<input id="dciudadd" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>
          
            <label class="col-md-2" hidden="true" for="">cufe<input id="cufe" disabled="disabled" class="form-control col-md-12" type="text" value="" ></label>
            <label class="col-md-2" hidden="true" for="">tipoatencion<input id="tipoatencioD" disabled="disabled" class="form-control col-md-12" type="text" value="" ></label>
            <label class="col-md-2" hidden="true" for="">tipoEletonico<input id="tipoEletonico" disabled="disabled" class="form-control col-md-12" type="text" value="" ></label>
    </div>
    <hr>
    <div id="dvendedor">
        <label class="col-md-1" name="cvendedor"  for="">Vendedor<input id="dvendedorr" disabled="disabled"  value=" " class="form-control form-control-sm col-md-12" value="" type="search" placeholder=""></label>
        <label class="col-md-2" for="">Nombre vendedor  <input id="dnvende" disabled="disabled"  class="form-control form-control-sm col-md-12" value="" type="search" ></label>
        
        
        <label class="col-md-1" for="">📅 &nbsp; Fecha Factura<input id="dfecha" disabled="disabled"  class="form-control form-control-sm col-md-12"  type="datetime"></label>
        <label class="col-md-1" hidden="true" for="">📅 &nbsp; Fecha Devolucion<input id="defecha" disabled="disabled"  class="form-control form-control-sm col-md-12"  type="datetime" value="<?php echo date('Y-m-d');?>"></label>
        <label class="col-md-1" hidden="true" for="">Numero Dev.<input id="iddevolu" disabled="disabled"  class="form-control form-control-sm col-md-12"  ></label>
        <label class="col-md-1" for="">Cambio.<input id="cambio" disabled="disabled"  class="form-control form-control-sm col-md-12"  ></label>
        <label class="col-md-1"  for="">Dto.<input id="descuentoDev" disabled="disabled"  class="form-control form-control-sm col-md-12"  ></label>
        <label class="col-md-2" hidden="true" for="">bodega<input id="bodegaDevo" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>
         
        



        <label class="col-md-1"  for="">efectivo<input id="efectivoDe" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>
        <label class="col-md-1" for="">trasferencia<input id="trasferenciaDV" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>
        <label class="col-md-1"  for="">tarjetas<input id="tarjetasDV" disabled="disabled" class="form-control form-control-sm col-md-12" type="text" value="" ></label>
        <label class="col-md-1"   for="">Servicio<input id="propinaImpresion" disabled="disabled" class="form-control col-md-12" type="text" value="" ></label>

         <label class="col-md-1"   for="">Otro Pag<input id="pagosDinamicos" disabled="disabled" class="form-control col-md-12" type="text" value="" ></label>
       <label class="col-sm-1"  hidden="true"  for="">D-V<input id="diasVencimiento" disabled="disabled" class="form-control col-sm-12" type="text" value="" ></label>
    </div>
    <br>

    
   
   
    <div style="background: #FFFFFF">
    <div id="tabadprodu" >
<table id="tabaldevolucion" class="table-responsive table table-striped table-hover "  >
        <thead class="table-primary">  
                 <tr  id="caberadev">
                    <th scope="col" class="text-center "  style="width:15%" >Codigo</th>
                    <th scope="col" class="text-center "  style="width:40%">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:8%">Base</th>
                    <th scope="col" class="text-center"   style="width:8%">iva</th>   
                    <th scope="col" class="text-center"   style="width:5%">tipo</th>    
                    <th scope="col" class="text-center"   style="width:20%">precio</th>
                    <th scope="col" class="text-center"   style="width:7%">Descu</th>
                    <th scope="col" class="text-center "  hidden="true" style="width:3%">preciounitarioCaja</th>
                    <th scope="col" class="text-center "  hidden="true" style="width:3%">preciounitariofrcc</th>
                    <th scope="col" class="text-center "  hidden="true" style="width:3%">devolucionEstado</th>
                    <th scope="col" class="text-center "  style="width:7%">Opcion</th>
                    <th scope="col" class="text-center " hidden="true" style="width:7%">tipoP</th>
                    <th scope="col" class="text-center " hidden="true" style="width:3%">idvencimeinto</th>
                    <th scope="col" class="text-center " hidden="true" style="width:3%">tipoProduct</th>
                    <th scope="col" class="text-center " hidden="true" style="width:3%">cajaDv</th>
                    <th scope="col" class="text-center " hidden="true" style="width:3%">frccDv</th>
                    <th scope="col" class="text-center " hidden="true" style="width:3%">costocajaD</th>
                    <th scope="col" class="text-center " hidden="true" style="width:3%">costofrccD</th>
                    <th scope="col" class="text-center " hidden="true" style="width:3%">factordv</th>
                   </tr>
               
         </thead>
        <tbody id="prodtabla"  class="col-md-7 table table-bordered table-striped" >
                     
        


        </tbody>


 </table>

 
</div>




<div id="dtotal">
<div id="base">

<div class="col footFact " style=" height:auto; padding:5px; margin:3px; bottom: 0; margin-right:3px; flex-wrap: wrap; ">
      
      <div class="col itemGrid " style="display: flex; align-content:stretch; flex-wrap: wrap;  justify-content:space-between;zoom:80%;" >
           
            <div class="col " ><p><b>5%</b></p><label  id="l"> </label><input type="text" id="dtotaliva5"  class="cuadrobases totalC" value="0" disabled="gc_disable"><input type="text" id="dbase5"  class="cuadrobases totalC"  value="0" disabled="gc_disable"></div>
            <div class="col " ><p><b>19%</b></p><label  id="l"></label><input type="text" id="dtotaliva19"  class="cuadrobases totalC" value="0" disabled="gc_disable"><input type="text" id="dbase19"  class="cuadrobases totalC" value="0" disabled="gc_disable"></div>
            <div class="col" ><p><b>otro</b></p><label  id="l"> </label><input type="text" id="divaotro"  class="cuadrobases totalC" value="0" disabled="gc_disable"><input type="text" id="dbaseotro"  class="cuadrobases totalC"  value="0" disabled="gc_disable"></div>
            <div class="col" ><p><b>Ipcons</b></p><label  id="l"> </label><input type="text" id="divaipc"  class="cuadrobases totalC" value="0" disabled="gc_disable"><input type="text" id="dbaseipc"  class="cuadrobases totalC"  value="0" disabled="gc_disable"></div> 
            <div class="col" ><p><b>Exento</b></p><label  id="l"></label><input type="text" id="dbaseexento"  class="cuadrobases totalC"  value="0" disabled="gc_disable"></div>
            <div class="col" ><p><b>Excluido</b></p><label  id="l"></label><input type="text" id="dbaseexcluido"  class="cuadrobases totalC"  value="0" disabled="gc_disable"></div>
      </div>


      <div class="itemGrid" id="totales" style="display:flex; align-items:center; flex-wrap:wrap;zoom:90%;">
            <div>
                   <div class="totalTitle" >
                      <label id="ddos"><p style="color:gray;"><b>TOTAL</b></p></label>
                   </div>
                  
                   <div class="row" style="width: 400px;">
                     <div class="col">
                          <input  style="width:135%; height:55px;" type="text" id="dtotalfact" name="totalfactura"  class="totalCuadro" placeholder="$ 000.000.000" disabled="gc_disable">
                          <input  style="width:135%; height:55px;" hidden type="text" id="dtotalfactCredito" name="dtotalfactCredito"  class="totalCuadro" placeholder="$ 000.000.000" disabled="gc_disable">
                     </div>
                     <div class="col">
                          <input <?php echo($naularFactur); ?> type="button" style="width:70%;font-size: 1rem;  height:55px; color:#000000 ;" class=" facturar"  id="devolution" value="Anular Factura">
                     </div>
           
                    
                   </div>

                            
             
            </div> 
              
              
      </div>

</div>


</div>
</div>
</div>
<?php include("devoluimpresion/modalcall.php"); ?>

