����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 216.73.216.116 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 : |
<?php ini_set('display_errors', TRUE); ini_set('display_startup_errors', TRUE); //2021/12/27 $stock_id = $_POST['stock_id']; $category_id = $_POST['category_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::getTsaleDetailByDate_line($date1,$date2); print_r($users); die; }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; $product->category_id; ?> <tr style="background:#red"> <td><?php echo $user->barcode;?></td> <td><?php echo $user->item_name;?></td> <td>$ <?php $priceSinIva = $user->price; echo number_format($priceSinIva,2); ?></td> <td><?php echo $user->qty;?></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> '; } ?>