<?php
require '../../conexion.php';
session_start();

$recepciones = consultas::get_datos("select * from v_servicios_entrada where id_cliente =" . $_REQUEST['vid_cliente']
                . " and rec_estado = 'ACTIVO' and cod_suc =" . $_SESSION['cod_suc']);
if(!empty($recepciones)){
?>

<select class = "form-control select2" name = "vrecepcion" required="">
   <?php foreach ($recepciones as $recepcion) { ?>
       <option value="<?php echo $recepcion['id_entrada']; ?>">
           <?php echo $recepcion['entrada']; ?></option>
<?php } ?>
</select> 
<?php }else{ ?>
<select class = "form-control select2" name = "vrecepcion" required="">
       <option value="">No posee recepciones pendientes</option>

</select>
<?php }?>


