����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 18.191.195.228
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64
User : www-data ( 33)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/var/www/html/app6/core/app/view/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/var/www/html/app6/core/app/view/Ajust-view.php
<?php
// $symbol = ConfigurationData::getByPreffix("currency")->val;
$iva_name = ConfigurationData::getByPreffix("imp-name")->val;
$iva_val = ConfigurationData::getByPreffix("imp-val")->val;

?>
<section class="content">
	<div class="row">
		<div class="col-md-12">
			<h1>Ajuste al Inventario</h1>
			<p><b>Buscar producto por nombre o por codigo:</b></p>
			<form>
		<div class="row">
		
			<div class="col-md-6">
				<input type="hidden" id="view" name="view" value="Ajust">
				<input type="text" id="product" name="product" class="form-control">
			</div>
		
     		<div class="col-md-3">
			<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-search"></i> Buscar</button>
			</div>
	
    	</div>
	    	</form>
	</div>
	
	<script type='text/javascript'>
document.forms[0].elements["product"].focus()
document.forms[0].elements["product"].select()
</script>
	
	
	<div class="col-md-12">
<?php if(isset($_GET["product"])):?>
	<?php
$products = ProductData::getLike($_GET["product"]);
if(count($products)>0){
	?>
<h3>Resultados de la Busqueda</h3>
<div class="box box-primary">
<table class="table table-bordered table-hover">
	<thead>
		<th>Codigo</th>
		<th>Nombre</th>
		<th>Precio unitario</th>
		<th>En inventario</th>
		<th>Cantidad</th>
		<th style="width:100px;"></th>
	</thead>
	<?php
$products_in_cero=0;
	 foreach($products as $product):
$q= OperationData::getQByStock($product->id,StockData::getPrincipal()->id);
	?>
		<form method="post" action="index.php?view=addtoAj">
	<tr class="<?php if($q<=$product->inventary_min){ echo "danger"; }?>">
		<td style="width:80px;"><?php echo $product->id; ?></td>
		<td><?php echo $product->name; ?></td>
		
		<td><b>$<?php echo $product->price_in; ?></b></td>
		<td>
			<?php echo $q; ?>
		</td>
		<td>
		<input type="hidden" name="product_id" value="<?php echo $product->id; ?>">
		<input type="" class="form-control" required id="q" name="q" value="10" placeholder="Cantidad de producto ..."></td>
		<td style="width:100px;">
		<button type="submit" class="btn btn-success"><i class="glyphicon glyphicon-refresh"></i>Ajuste</button>
		</td>
	</tr>
	</form>
	<?php endforeach;?>
</table>
</div>

<script type='text/javascript'>
document.forms[1].elements["q"].focus()
document.forms[1].elements["q"].select()
</script>
	<?php
}
?>
<br><hr>
<hr><br>
<?php else:
?>

<?php endif; ?>
</div>
	<div class="col-md-12">



<!--- Carrito de compras :) -->
<?php if(isset($_SESSION["reabastecer"])):
$total = 0;
?>

<h2>Lista de Ajustes</h2>
<div class="box box-primary">
<table class="table table-bordered table-hover">
<thead>
	<th style="width:30px;">Codigo</th>
	<th style="width:30px;">Cantidad</th>
	<th style="width:30px;">Unidad</th>
	<th>Producto</th>
	<th style="width:30px;">Costo Unitario</th>
	<th style="width:30px;"> Total</th>
	<th ></th>
</thead>
<?php foreach($_SESSION["reabastecer"] as $p):
$product = ProductData::getById($p["product_id"]);
?>
<tr >
	<td><?php echo $product->id; ?></td>
	<td ><?php echo $p["q"]; ?></td>
    <td><?php echo $product->unit; ?></td>
	<td><?php echo $product->name; ?></td>
	<td><b>$ <?php echo number_format($product->price_in,2,",","."); ?></b></td>
	<td><b>$ <?php  $pt = $product->price_in*$p["q"]; $total +=$pt; echo number_format($pt,2,",","."); ?></b></td>
	<td style="width:30px;"><a href="index.php?view=clearAj&product_id=<?php echo $product->id; ?>" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> Cancelar</a></td>

</tr>
<?php endforeach; ?>
</table>
</div>
<form method="post" class="form-horizontal" id="processsell" action="index.php?view=processAj">
      <input type="hidden" name="total" value="<?php echo $total; ?>" class="form-control" placeholder="Total">

<h2>Resumen</h2>
<div class="form-group">
    <label for="inputEmail1" class="col-lg-2 control-label">Almacen</label>
    <div class="col-lg-10">
<?php if(Core::$user->kind==1):?>
    <?php 
$clients = StockData::getAll();
$defecto= StockData::getById(1);
    ?>
    <select name="stock_id" class="form-control" required >
     
    <option value="<?php echo $defecto->id;?>" selected="selected"><font color="orange"><?php echo $defecto->name;?></option>
	<?php foreach($clients as $client):?>
		
    	<option value="<?php echo $client->id;?>"><?php echo $client->name;?></option>
    <?php endforeach;?>
    	</select>
    <?php else:?>
    	<input type="hidden" name="stock_id" value="<?php echo StockData::getPrincipal()->id; ?>">
    	<p class="form-control"><?php echo StockData::getPrincipal()->name; ?></p>
    <?php endif;?>
    </div>
  </div>
<div class="form-group">
    <label for="inputEmail1" class="col-lg-2 control-label">Tipo de Ajuste</label>
	
    <div class="col-lg-10">
    <?php 
$clients = AjustTypeData::getAll();
    ?>
    <select name="ajust_id" class="form-control">
    <?php foreach($clients as $client):?>
    	<option value="<?php echo $client->id;?>"><?php echo $client->name;?></option>
    <?php endforeach;?>
    	</select>
	
    </div>
  </div>
  
  <div class="form-group">
    <label for="inputEmail1" class="col-lg-2 control-label">Proveedor</label>
	
    <div class="col-lg-10">
    <?php 
$clients = PersonData::getProviders();
    ?>
    <select name="client_id" class="form-control">
    <option value="">-- NINGUNO --</option>
    <?php foreach($clients as $client):?>
    	<option value="<?php echo $client->id;?>"><?php echo $client->name." ".$client->lastname;?></option>
    <?php endforeach;?>
    	</select>
		<div class="btn-group  pull-left">
				<a href="./?view=newprovider" class="btn btn-default"></a>
     </div>
    </div>
  </div>
  
<div class="form-group">
    
    <div class="col-lg-4">
    <?php 
$clients = PData::getAll();
    ?>
    <input type="hidden" name="p_id" id="p_id" value="1" class="form-control"  placeholder="">
    </div>
    
    <div class="col-lg-4">
    <?php 
$clients = DData::getAll();
    ?>
	 <input type="hidden" name="d_id" id="d_id" value="1" class="form-control" placeholder="">
    
    </div>

  </div>

<div class="form-group">
   
    <div class="col-lg-10">
      <input type="hidden" name="money" id="money" required value="<?php echo $total?>" class="form-control" id="money" placeholder="Efectivo">
    </div>
  </div>
  
  <script type='text/javascript'>
document.forms[1].elements["stock_id"].focus()
</script>
  <div class="row">
<div class="col-md-6 col-md-offset-6">
<div class="box box-primary">
<table class="table table-bordered">

<tr>
	<td><p>Total</p></td>
	<td><p><b>$ <?php echo number_format($total,2,'.',','); ?></b></p></td>
</tr>

</table>
</div>
  <div class="form-group">
    <div class="col-lg-offset-2 col-lg-5">
      <div class="checkbox">
        <label>
          <input name="is_oficial" type="hidden" value="1">
        </label>
      </div>
    </div>
  </div>
<div class="form-group">
    <div class="col-lg-offset-2 col-lg-10">
      <div class="checkbox">
        <label>
		<a href="index.php?view=clearAj" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> Cancelar</a>
        <button class="btn btn-primary"><i class="fa fa-refresh"></i> Procesar el ajuste de inventario</button>
        </label>
      </div>
    </div>
  </div>
</form>
</div>
<script>
	$("#processsell").submit(function(e){
		money = $("#money").val();
		if(money<<?php echo $total;?>){
			alert("No se puede efectuar la operacion");
			e.preventDefault();
		}else{
			go = confirm("Ajuste Codigo: "+(money-<?php echo $total;?>));
			if(go){}
				else{e.preventDefault();}
		}
	});
</script>
</div>
</div>

<br><br><br><br><br>
<?php endif; ?>

</div>
</section>

Youez - 2016 - github.com/yon3zu
LinuXploit