<?php 
if (!isset($_SESSION['nombre'])) {
  header("Location: login.html");
}else{

  if ($_SESSION['almacen']==1) {
    ?>
      <!-- Main content -->
      <section class="content">
          <!-- Default box -->
        <div class="row">
          <div class="col-md-12">
            <div class="box">
                <div class="box-header with-border">
                    <button class="btn bg-green btn-app" onclick="mostrarform(true)" id="btnagregar"><i class="fa fa-plus-circle"></i>Agregar</button> 
                    <a target="_blank" href='<?php echo SERVERURL ?>reportes/rptarticulos.php'>
                    <button class="btn bg-blue btn-app" id="btnreporte"><i class="fa fa-clipboard"></i>Reporte</button></a></h1>
                    <div class="box-tools pull-right">
                      <h1 class="box-title">Promociones\Artículos Individuales
                    </div>
                </div>
                <!--box-header-->
                <!--centro-->
                <div class="panel-body table-responsive" id="listadoregistros">
                  <table id="tbllistado" class="table table-striped table-bordered table-condensed table-hover">
                    <thead>
                      <th>Opciones</th>
                      <th>Nombre</th>
                      <th>Descripción</th>
                      <?php if ($_SESSION['paisdeorigen_empresa']=='si') {?>
                        <th>Clasificación</th>
                        <th>Categoría</th>
                      <?php }else{ ?>
                        <th>Categoría</th>
                        <th>Código</th>
                      <?php } ?> 
                      
                      <th>Stock</th>
                      <!-- <th>Precio</th> -->
                      <th>Precio$</th>
                      <th>Imagen</th>
                      
                      <th>Estado</th>
                    </thead>
                    <tbody>
                    </tbody>
                    <tfoot>
                      <th></th>
                      <th></th>
                      <th></th>
                      <th></th>
                      <th></th>
                      <!-- <th></th> -->
                      <th></th>
                      <th></th>
                      <th></th>
                      <th></th>
                      <!-- <th>Opciones</th>
                      <th>Nombre</th>
                      <th>Categoría</th>
                      <th>Código</th>
                      <th>Stock</th>
                      <th>Precio</th>
                      <th>Precio$</th>
                      <th>Imagen</th>
                      <th>Descripción</th>
                      <th>Estado</th> -->
                    </tfoot>   
                  </table>
                </div>
               
                <div class="panel-body" id="formularioregistros">
                  <div class="form-group col-lg-12 col-md-12 col-xs-12">
                    <form action="" name="formulario" id="formulario" method="POST">   
                      <!--Insumos -->  
                      <input class="form-control" type="hidden" name="idarticulo" id="idarticulo">
                      <input class="form-control" type="hidden" name="validado" id="validado">
                      <input class="form-control" type="hidden" name="tasa_dollar" id="tasa_dollar">
                      <input class="form-control" type="hidden" name="tasa_euro" id="tasa_euro">
                      <input class="form-control" type="hidden" name="preciolbs1" id="preciolbs1">
                      <input class="form-control" type="hidden" name="preciorbs1" id="preciorbs1">
                      <input class="form-control" type="hidden" name="preciodbs1" id="preciodbs1">
                      <input class="form-control" type="hidden" name="precioddbs1" id="precioddbs1">
                      <input class="form-control" type="hidden" name="precioebs1" id="precioebs1">
                      <input class="form-control" type="hidden" name="precioldollar1" id="precioldollar1">
                      <input class="form-control" type="hidden" name="preciordollar1" id="preciordollar1">
                      <input class="form-control" type="hidden" name="precioddollar1" id="precioddollar1">
                      <input class="form-control" type="hidden" name="preciodddollar1" id="preciodddollar1">
                      <input class="form-control" type="hidden" name="precioedollar1" id="precioedollar1">
                      <input class="form-control" type="hidden" name="tasa_euro" id="tasa_euro">
                      <input class="form-control" type="hidden" name="pvplbs1" id="pvplbs1">
                      <input class="form-control" type="hidden" name="pvprbs1" id="pvprbs1">
                      <input class="form-control" type="hidden" name="pvpdbs1" id="pvpdbs1">
                      <input class="form-control" type="hidden" name="pvpddbs1" id="pvpddbs1">
                      <input class="form-control" type="hidden" name="pvpebs1" id="pvpebs1">
                      <input class="form-control" type="hidden" name="pvpldollar1" id="pvpldollar1">
                      <input class="form-control" type="hidden" name="pvprdollar1" id="pvprdollar1">
                      <input class="form-control" type="hidden" name="pvpddollar1" id="pvpddollar1">
                      <input class="form-control" type="hidden" name="pvpdddollar1" id="pvpdddollar1">
                      <input class="form-control" type="hidden" name="pvpedollar1" id="pvpedollar1">
                      <input class="form-control" type="hidden" name="impart18" id="impart18" value="<?php echo $_SESSION['impuestoart18_empresa'] ?>" >
                      <input class="form-control" type="hidden" name="porcentajeprecio" id="porcentajeprecio" value="<?php echo $_SESSION['porcentajeprecio_empresa'] ?>" >
                      <input class="form-control" type="hidden" name="impuestoiva" id="impuestoiva" value="<?php echo $_SESSION['iva_empresa'] ?>" >
                      <input class="form-control" type="hidden" name="idempresa_venta" id="idempresa_venta" value="<?php echo $_SESSION['idempresa_venta_empresa'] ?>" >
                      <input class="form-control" type="hidden" name="porcentajeprecio1" id="porcentajeprecio1"  >
                      <input class="form-control" type="hidden" name="idalicuota" id="idalicuota" value="1">
                      <input class="form-control" type="hidden" name="ivaprecio" id="ivaprecio">
                      <input class="form-control" type="hidden" name="ivapercibido" id="ivapercibido" >
                      <input class="form-control" type="hidden" name="preciopvpd" id="preciopvpd" >
                      <input class="form-control" type="hidden" name="impuestoart18d" id="impuestoart18d" value="0">
                      <input class="form-control" type="hidden" name="preciopvp" id="preciopvp">
                      <input class="form-control" type="hidden" name="impuestoart18" id="impuestoart18" value="0" >
                      <!-- <input class="form-control" type="hidden" name="idalmacen" id="idalmacen" value="1" > -->
                      <input class="form-control" type="hidden" name="tipoproducto" id="tipoproducto" value="Individual" > 
                      <!-- <input class="form-control" type="hidden" name="preciod" id="preciod" value="0" > 
                      <input class="form-control" type="hidden" name="precio" id="precio" value="0" > -->
                      <input class="form-control" type="hidden" name="costoad" id="costoad"  >
                      <input class="form-control" type="hidden" name="costoa" id="costoa"  >
                      <input class="form-control" type="hidden" name="costod" id="costod"  >
                      <input class="form-control" type="hidden" name="costo" id="costo"  >
                      <input class="form-control" type="hidden" name="idmarca" id="idmarca" value="200">
                      <input class="form-control" type="hidden" name="exento1" id="exento1">
                      
                      
                      <div class="form-group col-lg-6 col-md-6 col-xs-12">
                        <label for="">Nombre</label>
                        <input class="form-control" type="text" name="nombre" id="nombre" maxlength="100" >
                      </div>  
                      <div class="form-group col-lg-6 col-md-6 col-xs-12">
                        <label for="">Descripción</label>
                        <input class="form-control" type="text" name="descripcion" id="descripcion" maxlength="256" >
                      </div>
                      <!-- <div class="form-group col-lg-3 col-md-3 col-xs-12">
                        <label for="">Clasificación</label>
                        <select name="idmarca" id="idmarca" class="form-control selectpicker" data-Live-search="true" ></select>
                      </div> -->
                      <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">Almacén</label>
                              <select name="idalmacen" id="idalmacen" class="form-control selectpicker" data-Live-search="true" ></select>
                      </div>
                      <div class="form-group col-lg-3 col-md-3 col-xs-12">
                        <label for="">Categoría</label>
                        <select name="idcategoria" id="idcategoria" class="form-control selectpicker" data-Live-search="true" ></select>
                      </div>
                      <div class="form-group col-lg-3 col-md-3 col-xs-12">
                        <label for="">Tipo Producto</label>
                        <select name="idtipoarticulo" id="idtipoarticulo" class="form-control selectpicker" data-Live-search="true" ></select>
                        <input  type="hidden" name="idpaisdeorigen" id="idpaisdeorigen" value="1">
                      </div>
                           
                      <div class="form-group col-lg-3 col-md-3 col-xs-12">
                        <label for="">Categoría de Medida</label>
                        <select name="idcategoriadeunidades" id="idcategoriadeunidades" class="form-control selectpicker" data-Live-search="true" ></select>
                      </div>
                      <div class="form-group col-lg-3 col-md-3 col-xs-12">
                        <label for="">Unidad de Medida</label>
                        <select name="idunidademedidad" id="idunidademedidad" class="form-control selectpicker" data-Live-search="true" ></select>
                      </div>
                      <div class="form-group col-lg-3 col-md-3  col-xs-12">
                        <label for="">Factor de Conversión</label>
                        <select name="idfactorunidademedidad" id="idfactorunidademedidad" class="form-control selectpicker" data-Live-search="true" ></select>
                      </div>
                      <div class="form-group col-lg-3 col-md-3 col-xs-12">
                        <label for="">Capacidad de Medida</label>
                        <input class="form-control" type="text" name="unidademedidad" id="unidademedidad"  >
                      </div>
                      <div class="form-group col-lg-3 col-md-3 col-xs-12">
                          <label for="">Tasa Cambio</label>
                          <input class="form-control" type="text" name="tasacambio" id="tasacambio" readonly>
                      </div> 
                      <div class="form-group col-lg-3 col-md-3 col-xs-12">
                        <label for="">Precio $</label>
                        <input class="form-control" type="text" name="preciod" id="preciod" value="0" > 
                        
                        
                        
                      </div> 
                      <div class="form-group col-lg-3 col-md-3 col-xs-12">
                        <label for="">Precio Bs.</label>
                        <input class="form-control" type="text" name="precio" id="precio" value="0">
                        
                        
                      </div>
                      
                      <div class="form-group col-lg-3 col-md-3 col-xs-12">
                        <label for="">(E)iva</label>
                        <br>
                        <input type="checkbox" name="exento" id="exento" value="si">
                        
                      </div> 

                      <div class="form-group col-lg-3 col-md-3 col-xs-12">
                        <label for="">Stock</label>
                        <input class="form-control" type="text" name="stock" id="stock" value="0" readonly>
                      </div>

                      
                     <!--  <div class="form-group col-lg-3 col-md-3 col-xs-12">
                        <label for="">Costo $</label>
                        
                      </div>
                      <div class="form-group col-lg-3 col-md-3 col-xs-12">
                        <label for="">Costo bs</label>
                        
                      </div> -->
                      
                     
                      <div class="form-group col-lg-3 col-md-3 col-xs-12">
                        <label for="">Código</label>
                        <input class="form-control" type="text" name="codigo" id="codigo">
                        <div><br>
                          <button class="btn btn-success" type="button" onclick="generarbarcode()">Generar</button>
                          <button class="btn btn-info" type="button" onclick="imprimir()">Imprimir</button>
                        </div>
                        <div id="print">
                          <svg id="barcode"></svg>
                        </div>
                      </div>
                      <div class="form-group col-lg-3 col-md-3 col-xs-12">
                        <label for="">Imagen</label>
                        <input class="form-control" type="file" name="imagen" id="imagen">
                        <input type="hidden" name="imagenactual" id="imagenactual">
                        <img src="" alt="" width="150px" height="120" id="imagenmuestra">
                      </div>
                        
                     <!--  
                     
                      <div class="form-group col-lg-2 col-md-2 col-xs-12">
                        <label for=""></label>
                        
                      </div> -->
                        
                       
                   </form> 
                  </div>
                </div>
                <!--fin centro-->
                <div class="box-footer" id="formularioregistros1">
                    <button class="btn bg-blue btn-app pull-right" type="submit" id="btnGuardar"><i class="fa fa-save"></i>  Guardar</button>
                    <button class="btn bg-red btn-app pull-right" onclick="cancelarform()" type="button"><i class="fa fa-arrow-circle-left"></i> Cancelar</button>
                </div>
                <!-- Modal de precio -->
                <div class="modal fade" id="myModalPrecio" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog" style="width: 55% !important;">
                    <div class="modal-content">
                      <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title">Lista de Precio</h4>
                      </div>
                      <?php 
                          if ($_SESSION['impuestoart18_empresa']=='si'){ 
                      ?>
                        <div class="modal-body">
                          <div class="form-group col-lg-12 col-md-12 col-xs-12">
                            <div class="form-group col-lg-12 col-md-12 col-xs-12">
                              <label for="" id="labelprecioa"></label>
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">(Bs)</label>
                              <input class="form-control" type="text" name="preciodbs" id="preciodbs" >
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">($)</label>
                              <input class="form-control" type="text" name="precioddollar" id="precioddollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">Iva $</label>
                              <input class="form-control" type="text" name="ivaddollar" id="ivaddollar" >
                              <input class="form-control" type="hidden" name="porcentajeprecioddollar" id="porcentajeprecioddollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">Iva Percibido $</label>
                              <input class="form-control" type="text" name="ivapercibidoddollar" id="ivapercibidoddollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 ol-xs-12">
                              <label for="">PVP $</label>
                              <input class="form-control" type="text" name="pvpddollar" id="pvpddollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">PVP Bs</label>
                              <input class="form-control" type="text" name="pvpdbs" id="pvpdbs" >
                            </div>
                          </div>
                          <div class="form-group col-lg-12 col-md-12 col-xs-12">
                            <div class="form-group col-lg-12 col-md-12 col-xs-12">
                              <label for="" id="labelpreciob"></label>
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">(Bs)</label>
                              <input class="form-control" type="text" name="preciolbs" id="preciolbs" >
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">($)</label>
                              <input class="form-control" type="text" name="precioldollar" id="precioldollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">Iva $</label>
                              <input class="form-control" type="text" name="ivaldollar" id="ivaldollar" >
                              <input class="form-control" type="hidden" name="porcentajeprecioldollar" id="porcentajeprecioldollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">Iva Percibido $</label>
                              <input class="form-control" type="text" name="ivapercibidoldollar" id="ivapercibidoldollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">PVP $</label>
                              <input class="form-control" type="text" name="pvpldollar" id="pvpldollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">PVP Bs</label>
                              <input class="form-control" type="text" name="pvplbs" id="pvplbs" >
                            </div>
                            
                          </div>
                          <div class="form-group col-lg-12 col-md-12 col-xs-12">
                            <div class="form-group col-lg-12 col-md-12 col-xs-12">
                              <label for="" id="labelprecioc"></label>
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">(Bs)</label>
                              <input class="form-control" type="text" name="preciorbs" id="preciorbs" >
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">($)</label>
                              <input class="form-control" type="text" name="preciordollar" id="preciordollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">Iva $</label>
                              <input class="form-control" type="text" name="ivardollar" id="ivardollar" >
                              <input class="form-control" type="hidden" name="porcentajepreciordollar" id="porcentajepreciordollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">Iva Percibido $</label>
                              <input class="form-control" type="text" name="ivapercibidordollar" id="ivapercibidordollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">PVP $</label>
                              <input class="form-control" type="text" name="pvprdollar" id="pvprdollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">PVP Bs</label>
                              <input class="form-control" type="text" name="pvprbs" id="pvprbs" >
                            </div>
                          </div>
                          <div class="form-group col-lg-12 col-md-12 col-xs-12">
                            <div class="form-group col-lg-12 col-md-12 col-xs-12">
                              <label for="" id="labelpreciod"></label>
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">(Bs)</label>
                              <input class="form-control" type="text" name="precioddbs" id="precioddbs" >
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">($)</label>
                              <input class="form-control" type="text" name="preciodddollar" id="preciodddollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">Iva $</label>
                              <input class="form-control" type="text" name="ivadddollar" id="ivadddollar" >
                              <input class="form-control" type="hidden" name="porcentajepreciodddollar" id="porcentajepreciodddollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">Iva Percibido $</label>
                              <input class="form-control" type="text" name="ivapercibidodddollar" id="ivapercibidodddollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">PVP $</label>
                              <input class="form-control" type="text" name="pvpdddollar" id="pvpdddollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">PVP Bs</label>
                              <input class="form-control" type="text" name="pvpddbs" id="pvpddbs" >
                            </div>
                          </div>
                          <div class="form-group col-lg-12 col-md-12 col-xs-12">
                            <div class="form-group col-lg-12 col-md-12 col-xs-12">
                              <label for="" id="labelprecioe"></label>
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">(Bs)</label>
                              <input class="form-control" type="text" name="precioebs" id="precioebs" >
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">($)</label>
                              <input class="form-control" type="text" name="precioedollar" id="precioedollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">Iva $</label>
                              <input class="form-control" type="text" name="ivaedollar" id="ivaedollar" >
                              <input class="form-control" type="hidden" name="porcentajeprecioedollar" id="porcentajeprecioedollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">Iva Percibido $</label>
                              <input class="form-control" type="text" name="ivapercibidoedollar" id="ivapercibidoedollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">PVP $</label>
                              <input class="form-control" type="text" name="pvpedollar" id="pvpedollar" >
                            </div>
                            <div class="form-group col-lg-3 col-md-3 col-xs-12">
                              <label for="">PVP Bs</label>
                              <input class="form-control" type="text" name="pvpebs" id="pvpebs" >
                            </div>
                          </div>
                        </div>
                      <?php 
                          }else{
                      ?>
                        <div class="modal-body">
                          <div class="form-group col-lg-12 col-md-12 col-xs-12">
                            <div class="form-group col-lg-12 col-md-12 col-xs-12">
                              <label for="" id="labelprecioa"></label>
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">(Bs)</label>
                              <input class="form-control" type="text" name="preciodbs" id="preciodbs" >
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">($)</label>
                              <input class="form-control" type="text" name="precioddollar" id="precioddollar" >
                            </div>
                          </div>
                          <div class="form-group col-lg-12 col-md-12 col-xs-12">
                            <div class="form-group col-lg-12 col-md-12 col-xs-12">
                              <label for="" id="labelpreciob"></label>
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">(Bs)</label>
                              <input class="form-control" type="text" name="preciolbs" id="preciolbs" >
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">($)</label>
                              <input class="form-control" type="text" name="precioldollar" id="precioldollar" >
                            </div>
                          </div>
                          <div class="form-group col-lg-12 col-md-12 col-xs-12">
                            <div class="form-group col-lg-12 col-md-12 col-xs-12">
                              <label for="" id="labelprecioc"></label>
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">(Bs)</label>
                              <input class="form-control" type="text" name="preciorbs" id="preciorbs" >
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">($)</label>
                              <input class="form-control" type="text" name="preciordollar" id="preciordollar" >
                            </div>
                          </div>
                          <div class="form-group col-lg-12 col-md-12 col-xs-12">
                            <div class="form-group col-lg-12 col-md-12 col-xs-12">
                              <label for="" id="labelpreciod"></label>
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">(Bs)</label>
                              <input class="form-control" type="text" name="precioddbs" id="precioddbs" >
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">($)</label>
                              <input class="form-control" type="text" name="preciodddollar" id="preciodddollar" >
                            </div>
                          </div>
                          <div class="form-group col-lg-12 col-md-12 col-xs-12">
                            <div class="form-group col-lg-12 col-md-12 col-xs-12">
                              <label for="" id="labelprecioe"></label>
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">(Bs)</label>
                              <input class="form-control" type="text" name="precioebs" id="precioebs" >
                            </div>
                            <div class="form-group col-lg-6 col-md-6 col-xs-12">
                              <label for="">($)</label>
                              <input class="form-control" type="text" name="precioedollar" id="precioedollar" >
                            </div>
                          </div>
                          <input type="hidden" name="ivaddollar" id="ivaddollar" >
                          <input type="hidden" name="porcentajeprecioddollar" id="porcentajeprecioddollar" >
                          <input type="hidden" name="ivapercibidoddollar" id="ivapercibidoddollar" >
                          <input type="hidden" name="pvpddollar" id="pvpddollar" >
                          <input type="hidden" name="pvpdbs" id="pvpdbs" >
                          <input type="hidden" name="ivaldollar" id="ivaldollar" >
                          <input type="hidden" name="porcentajeprecioldollar" id="porcentajeprecioldollar" >
                          <input type="hidden" name="ivapercibidoldollar" id="ivapercibidoldollar" >
                          <input type="hidden" name="pvpldollar" id="pvpldollar" >
                          <input type="hidden" name="pvplbs" id="pvplbs" >
                          <input type="hidden" name="ivardollar" id="ivardollar" >
                          <input type="hidden" name="porcentajepreciordollar" id="porcentajepreciordollar" >
                          <input type="hidden" name="ivapercibidordollar" id="ivapercibidordollar" >
                          <input type="hidden" name="pvprdollar" id="pvprdollar" >
                          <input type="hidden" name="pvprbs" id="pvprbs" >

                          <input type="hidden" name="ivadddollar" id="ivadddollar" >
                          <input type="hidden" name="porcentajepreciodddollar" id="porcentajepreciodddollar" >
                          <input type="hidden" name="ivapercibidodddollar" id="ivapercibidodddollar" >
                          <input type="hidden" name="pvpdddollar" id="pvpdddollar" >
                          <input type="hidden" name="pvpddbs" id="pvpddbs" >

                          <input type="hidden" name="ivaedollar" id="ivaedollar" >
                          <input type="hidden" name="porcentajeprecioedollar" id="porcentajeprecioedollar" >
                          <input type="hidden" name="ivapercibidoedollar" id="ivapercibidoedollar" >
                          <input type="hidden" name="pvpedollar" id="pvpedollar" >
                          <input type="hidden" name="pvpebs" id="pvpebs" >
                        </div>
                        
                      <?php 
                          }
                      ?> 
                      <div class="modal-footer">
                        <button class="btn btn-primary" type="button" id="btnGuardarPrecio" onclick="GuardarPrecio()"><i class="fa fa-save"></i>  Guardar</button>
                        <!-- <button class="btn btn-default" type="button" data-dismiss="modal">Cerrar</button> -->
                      </div>
                    </div>
                  </div>
                </div>
            </div>

          </div>
        </div>
                    <!-- /.box -->
      </section>
      <!-- /.content -->
      </div>
          <!-- /.content-wrapper -->
  <?php 
  }else{
    require 'vistas/contenidos/noacceso-view.php'; 
  }
  ?>       
          <!-- Main Footer -->
          <?php include "vistas/modulos/mainfooter.php";?>
      </div>

      <!-- ./wrapper -->
      <!-- REQUIRED JS SCRIPTS -->
      <?php include "vistas/modulos/script.php";?>
      <script src="vistas/public/js/JsBarcode.all.min.js"></script>
      <script src="vistas/public/js/jquery.PrintArea.js"></script>
      <script src="vistas/scripts/articuloindividual.js"></script>
  </body>
  </html> 
  <?php 
}
ob_end_flush();
?>