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

$stocks = consultas::get_datos("select * from v_stock where id_articulo = " . $_REQUEST['vart'] ." and cod_depo=" . $_REQUEST['vdep']);
?>

<label class="control-label">Cantidad</label>
<?php if (!empty($stocks)) { ?>
<input type="number" required="" class="form-control" name="vcant" id="cantidad" min="1"
           value="<?php echo $stocks[0]['cantidad'] ?>"
           style="width : 60px;"
           onclick="stock()" onchange="stock()" onkeypress="stock()">


<input type="hidden" name="cantidad1" 
           value="<?php echo $stocks[0]['cantidad'] ?>"
           id="cantstock">

<?php } ?>
