����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 18.117.186.60
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 :  /var/www/html/t/sae/appsae/core/app/view/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/t/sae/appsae/core/app/view/onere-view.php
<section class="content">
<div class="btn-group pull-right">
  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
    <i class="fa fa-download"></i> Descargar <span class="caret"></span>
  </button>
  <ul class="dropdown-menu" role="menu">
    <li><a href="report/onere-word.php?id=<?php echo $_GET["id"];?>">Word 2007 (.docx)</a></li>
  </ul>

</div>

<nav class = "navbar navbar-inverse">
		<div class = "container-fluid">
			<a href = "#" class = "navbar-brand">Resumen de Movimiento ORDEN DE COMPRA Folio. <?php echo $_GET["id"];?></a>
		</div>
	</nav>

<?php if(isset($_GET["id"]) && $_GET["id"]!=""):?>
<?php
$sell = ReData::getById($_GET["id"]);
$operations = OperationData2::getAllProductsByReId($_GET["id"]);
if(isset($operations[0]->product_id)){
	echo "<h1>Compra-entrada</h1>";
	//print_r($operations[0]->product_id);
}else{
	echo "<h1>Ajuste-salida</h1>";
	$operations = OperationData2::getAllProductsByAjId2($_GET["id"]);
	//print_r($operations);
}

$total = 0;
?>
<?php
/*
if(isset($_COOKIE["selled"])){
	foreach ($operations as $operation) {
//		print_r($operation);
		$qx = OperationData::getQYesF($operation->product_id);
		// print "qx=$qx";
			$p = $operation->getProduct();
		if($qx==0){
			echo "<p class='alert alert-danger'>El producto <b style='text-transform:uppercase;'> $p->name</b> no tiene existencias en inventario.</p>";			
		}else if($qx<=$p->inventary_min/2){
			echo "<p class='alert alert-danger'>El producto <b style='text-transform:uppercase;'> $p->name</b> tiene muy pocas existencias en inventario.</p>";
		}else if($qx<=$p->inventary_min){
			echo "<p class='alert alert-warning'>El producto <b style='text-transform:uppercase;'> $p->name</b> tiene pocas existencias en inventario.</p>";
		}
	}
	setcookie("selled","",time()-18600);
}
*/
?>
<div class="box box-primary">
<table class="table table-bordered">
<?php if($sell->person_id!=""):
$client = PersonData::getProvidersId($sell->person_id);
?>


<tr>
	<td style="width:150px;">Proveedor</td>
	<td><?php echo $client->name."-Contacto: ".$client->lastname;?></td>
</tr>

<?php endif; ?>


<?php if($sell->user_id!=""):
$user = $sell->getUser();
?>
<tr>
	<td>Atendido por</td>
	<td><?php echo $user->name." ".$user->lastname;?></td>
</tr>
<?php endif; ?>
<tr>
  <td><u>Almacen Destino:</u> ( <small>Donde se ingreso la mercancia </small>)</td>
  <td>
  
	<a><?php echo StockData::getById($sell->stock_to_id)->name;?> </a>
  </td>

 <td align="right"><b>Fecha:</b></td>
	<?php $fecha =  explode("-",$sell->created_at);
		  $fecha2 = explode(":",$fecha[2]);
		  $fecha3 = explode(" ",$fecha2[0]);
	?>
	<td><b><?php echo $fecha3[0]; echo "/"; echo $fecha[1]; echo "/"; echo $fecha[0]; ?></b></td>
</tr>
</table>
</div>
<div class="box box-primary">
<br><table class="table table-bordered table-hover">
	<thead>
		<th>#</th>
		<th>Codigo</th>
		<th>Cantidad</th>
		<th>Nombre del Producto</th>
		<th>Precio Costo</th>
		<th>tipo</th>
		<th>Total</th>

	</thead>
<?php
	foreach($operations as $operation){
		$product  = $operation->getProduct();
?>
<tr>
	<td><?php echo $product->id ;?>
	<a  title="Historial del producto" href="index.php?view=history&product_id=<?php echo $product->id; ?>&stock=1" class="btn btn-xs btn-info"><i class="glyphicon glyphicon-level-up"></i></a>
		
	</td>
	<td><?php echo $product->barcode ;?></td>
	<td><?php echo $operation->q ;?></td>
	<td><?php echo $product->name ;?></td>
	<td>$ <?php echo number_format($operation->price_in,2,".",",") ;?></td>
	<td><?php echo $product->unit;?></td>
	<td><b>$ <?php echo number_format($operation->q*$operation->price_in,2,".",",");
	$total+=$operation->q*$operation->price_in;?>
	</b></td>
</tr>
<?php
	}
	
	//impuesto General
	$impuesto = ConfigurationData::getByPreffix('imp-val')->val;
	
	//print_r($impuesto);
	?>
</table>
</div>
<br><br>
<div class="box box-primary">
<table class="table table-bordered">
	<tr>
		<td align="right"><b>SubTotal: </b></td>
		<td align="right"><b><u> $ <?php echo number_format($total/(1 + ($impuesto/100) ),2,'.',','); ?></u></b></td>
	</tr>
	<tr>
		<td align="right"><b>impuesto:(<?php echo $impuesto;?>%) </b></td>
		<td align="right"><b><u> $ <?php echo number_format($total - ( $total/(1 + ($impuesto/100)) ),2,'.',','); ?></u></b></td>
	</tr>
	<tr>
		<td align="right"><b>SubTotal: </b></td>
		<td align="right"><b><u> $ <?php echo number_format($total,2,'.',','); ?></u></b></td>
	</tr>
</table>
</div>


<?php else:?>
	501 Internal Error
<?php endif; ?>
</section>


Youez - 2016 - github.com/yon3zu
LinuXploit