����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 3.139.86.227
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/invoice-view.php
<?php
$payment = PaymentData::getById($_GET["id"]);

//print_r($payment);

$client = PersonData::getIdContract($payment->person_id);
$total = 0;

								$settings2 = ConfigurationData::getById1();
								$settingsEmisor = ConfigurationData::getByIdEmisor();
								$settingsCalle = ConfigurationData::getByIdCalle();
								$settingsInt = ConfigurationData::getByIdInt();
								$settingsExt = ConfigurationData::getByIdExt();
								$settingsColonia = ConfigurationData::getByIdColonia();
								$settingsCity = ConfigurationData::getByIdCity();
								$settingsCP = ConfigurationData::getByIdCp();
								$settingsRFC = ConfigurationData::getByPreffix("rfc_val")->val;//
							    $logo = ConfigurationData::getByPreffix("report_image")->val;//
								 $ruta_logo = "../../pos11/storage/configuration/$logo";
?>


<?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>  Recibo de Pago </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">
							
							<style>
							img{border-radius:50%;background-color: transparent;width:70px;height:70px} 

							</style>							
			
						  <h4>
							
							<img src="storage/configuration/logo_victoria.png" width="120" height="120">
							
							<?php echo ConfigurationData::getByPreffix("company_name")->val;?>
						 </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($payment->person_id!=""):
								$venta = SellData::getByIdSaleClient($client->contract);
												
								
						?>
							<div class="col-sm-4 invoice-col">
							  Para:
							  <address>
								<strong><?php echo $client->name;?></strong><br>
								Contrato: <?php echo $client->contract;?><br>
							
								Direccion: <?php echo $client->direccion;?><br>
						
							  </address>
							</div>
						<?php endif; ?>
						
						<!-- /.col -->
						<div class="col-sm-4 invoice-col">
						  <b>Detalle del recibo de Pago</b><br>
						  <br>
						  <b>Ticket ID:</b> #<?php echo $_GET["id"];?><br>
						  <b>Fecha de Pago:</b> <?php echo $payment->created_at;?><br>
						  <b>Folio de Venta:</b> <?php echo $venta->sale_id;?>
						</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 Credito</th>
							  <th>Codigo #</th>
							  <th>Descripcion</th>
							  <th>Subtotal</th>
							</tr>
							</thead>
							<tbody>
							<?php 
							$operations = OperationData::getAllProductsBySellId($venta->sale_id);
	
	
							foreach($operations as $operation){ 
							
							?>
							<tr>
							  <td><?php echo $operation->qty ;?></td>
							  <td>$ <?php echo number_format($operation->price,2,".",",") ;?></td>
							  <td><?php echo $operation->barcode ;?></td>
							  <td><?php echo $operation->item_name ;?></td>
							  <td>
								$ <?php echo number_format($operation->qty*$operation->price,2,".",",");
									$total+=$operation->qty*$operation->price;?>
							  </td>
							</tr>
							
							<?php }?>
							</tbody>
						  </table>
						</div>
						<!-- /.col -->
					  </div>
					  <!-- /.row -->

					  <div class="row">
				
						<!-- /.col -->
						<div class="col-6">
						  <p class="lead">Detalle de Saldo </p>
	<?php 
	//$credit=PaymentData::sumByClientId($payment->person_id)->total;
	$credit = PaymentData::sumByClientId2($client->contract)->total;
	$abonos = PaymentData::sumByClientId($client->contract)->total;
	?>

						  <div class="table-responsive">
							<table class="table">
							  <tr>
								<th style="width:50%">Saldo Anterior:</th>
								<td>$ <?php echo number_format($credit+$abonos,2,'.',','); ?></td>
							  </tr>
							  <tr>
								<th>Su Pago (<?php echo "Semana"; ?>)</th>
								<td>$<?php 
								
								echo number_format($payment->val,2); ?></td>
							  </tr>
							  <tr>
								<th>Saldo Actual:</th>
								<td><?php echo number_format( $credit - abs($payment->val),2);?></td>
							  </tr>
							  <tr>
								<th>Total de la venta:</th>
								<td>$<?php echo number_format($credit,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 rel="noopener" type="button"  onclick="javascript:window.print()" target="_blank" class="btn btn-default"><i class="fa fa-print"></i> Imprimir</a>
						  <button type="button" class="btn btn-success float-right"><i class="fa fa-credit-card"></i> Enviar
							Por Correo
						  </button>
						  <button type="button" class="btn btn-primary float-right" style="margin-right: 5px;">
							<i class="fa fa-download"></i> Generar PDF
						  </button>
						</div>
					  </div>
					</div>
					<!-- /.invoice -->
				  </div><!-- /.col -->
				</div><!-- /.row -->
			 
			</section>
		<!-- /.content -->
	
		</div>
	</div>
</section>	

Youez - 2016 - github.com/yon3zu
LinuXploit